diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index d8d73ee..c9e45c5 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -17,6 +17,7 @@ import { VersionsExplorer } from './pages/VersionsExplorer'; import Profile from './pages/Profile'; import Shop from './pages/Shop'; import Marketplace from './pages/Marketplace'; +import { Registration } from './pages/Registration'; const AuthCheck = ({ children }: { children: ReactNode }) => { const [isAuthenticated, setIsAuthenticated] = useState(null); @@ -127,6 +128,7 @@ const App = () => { } /> + } /> (0); const [value, setValue] = useState(0); @@ -118,7 +119,7 @@ export default function TopBar({ onRegister, username }: TopBarProps) { marginLeft: '1vw', }} > - {isLaunchPage && ( + {(isLaunchPage || isRegistrationPage) && ( )} - {!isLaunchPage && ( + {!isLaunchPage && !isRegistrationPage && !isLoginPage && ( onRegister && onRegister()} + onClick={() => navigate('/registration')} sx={{ width: '10em', height: '3em', diff --git a/src/renderer/pages/Registration.tsx b/src/renderer/pages/Registration.tsx new file mode 100644 index 0000000..d8d8bcf --- /dev/null +++ b/src/renderer/pages/Registration.tsx @@ -0,0 +1,3 @@ +export const Registration = () => { + return
Registration
; +};