Layout Hub foundation

This commit is contained in:
2025-04-07 16:48:39 +02:00
parent 2c5724ccdd
commit 684cdf0bb1
7 changed files with 33 additions and 14 deletions

View File

@@ -1,5 +0,0 @@
import { AuthPage } from "@refinedev/mui";
export const ForgotPassword = () => {
return <AuthPage type="forgotPassword" />;
};

View File

@@ -0,0 +1,9 @@
export const CreateFirm = () => {
return (
<div>
<h1>Create Firm</h1>
</div>
)
}

View File

@@ -0,0 +1,13 @@
import {Button} from "@mui/material";
export const Hub = () => {
return (
<div>
<h1>HUB</h1>
<p>List of managed firms</p>
<p>List of firm you're working atx</p>
<p><Button>Create a new firm</Button></p>
</div>
);
};

View File

@@ -1,32 +0,0 @@
import { AuthPage } from "@refinedev/mui";
import GoogleIcon from "@mui/icons-material/Google";
import DiscordIcon from "../../components/DiscordIcon";
import { useSearchParams, Navigate } from "react-router";
export const Login = () => {
const [searchParams] = useSearchParams();
if (searchParams.get("oauth") == "success") {
const redirect_to = localStorage.getItem("redirect_after_login")
if (redirect_to) {
return (<Navigate replace to={ redirect_to } />);
}
}
return (
<AuthPage
type="login"
formProps={{ defaultValues: { email: "test@test.te", password: "test" }, }}
providers={[{
name: "google",
label: "Sign in with Google",
icon: (<GoogleIcon style={{ fontSize: 24, }} />),
},
{
name: "discord",
label: "Sign in with Discord",
icon: (<DiscordIcon style={{ fontSize: 24, }} />),
},
]}
/>
);
};

View File

@@ -1,5 +0,0 @@
import { AuthPage } from "@refinedev/mui";
export const Register = () => {
return <AuthPage type="register" />;
};

View File

@@ -1,9 +0,0 @@
import { AuthPage } from "@refinedev/mui";
import type {RegisterFormTypes} from "@refinedev/core";
import { useParams } from "react-router"
export const UpdatePassword = () => {
return <AuthPage type="updatePassword"/>;
};