diff --git a/resources/scripts/components/App.tsx b/resources/scripts/components/App.tsx index 2512d368d..f65255843 100644 --- a/resources/scripts/components/App.tsx +++ b/resources/scripts/components/App.tsx @@ -6,7 +6,7 @@ import AccountRouter from '@/routers/AccountRouter'; import ServerOverviewContainer from '@/components/ServerOverviewContainer'; import { StoreProvider } from 'easy-peasy'; import { store } from '@/state'; -import { UserData } from '@/state/types'; +import TransitionRouter from '@/TransitionRouter'; interface WindowWithUser extends Window { PterodactylUser?: { @@ -39,11 +39,13 @@ const App = () => { return ( -
- - - -
+ +
+ + + +
+
); diff --git a/resources/scripts/components/ServerOverviewContainer.tsx b/resources/scripts/components/ServerOverviewContainer.tsx index 20891bac9..8cc5cf7cb 100644 --- a/resources/scripts/components/ServerOverviewContainer.tsx +++ b/resources/scripts/components/ServerOverviewContainer.tsx @@ -1,7 +1,13 @@ import * as React from 'react'; +import { NavLink } from 'react-router-dom'; export default class ServerOverviewContainer extends React.PureComponent { render () { - return

Test

; + return ( +
+ Account + Design +
+ ); } } diff --git a/resources/scripts/components/account/DesignElements.tsx b/resources/scripts/components/account/DesignElements.tsx index 66950b6da..319001987 100644 --- a/resources/scripts/components/account/DesignElements.tsx +++ b/resources/scripts/components/account/DesignElements.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import { Link } from 'react-router-dom'; export default class DesignElements extends React.PureComponent { render () { @@ -8,7 +9,10 @@ export default class DesignElements extends React.PureComponent {

A Special Announcement

-

Your demands have been received: Dark Mode will be default in Pterodactyl 0.8!

+

+ Your demands have been received: Dark Mode will be default in Pterodactyl 0.8! +

+

Back

diff --git a/resources/scripts/components/auth/ForgotPasswordContainer.tsx b/resources/scripts/components/auth/ForgotPasswordContainer.tsx index 5a8e1676f..fbf0eb704 100644 --- a/resources/scripts/components/auth/ForgotPasswordContainer.tsx +++ b/resources/scripts/components/auth/ForgotPasswordContainer.tsx @@ -66,7 +66,7 @@ export default () => {
Return to Login diff --git a/resources/scripts/components/auth/LoginCheckpointContainer.tsx b/resources/scripts/components/auth/LoginCheckpointContainer.tsx index b3c508076..ccc53e5bc 100644 --- a/resources/scripts/components/auth/LoginCheckpointContainer.tsx +++ b/resources/scripts/components/auth/LoginCheckpointContainer.tsx @@ -15,7 +15,7 @@ export default ({ history, location: { state } }: RouteComponentProps<{}, Static const { clearFlashes, addFlash } = useStoreActions((actions: Actions) => actions.flashes); if (!state || !state.token) { - history.replace('/login'); + history.replace('/auth/login'); return null; } @@ -79,7 +79,7 @@ export default ({ history, location: { state } }: RouteComponentProps<{}, Static
Return to Login diff --git a/resources/scripts/components/auth/LoginContainer.tsx b/resources/scripts/components/auth/LoginContainer.tsx index 7a33b7dcc..f29a8c599 100644 --- a/resources/scripts/components/auth/LoginContainer.tsx +++ b/resources/scripts/components/auth/LoginContainer.tsx @@ -28,7 +28,7 @@ export default ({ history }: RouteComponentProps) => { return; } - history.replace('/login/checkpoint', { token: response.confirmationToken }); + history.replace('/auth/login/checkpoint', { token: response.confirmationToken }); }) .catch(error => { console.error(error); @@ -82,7 +82,7 @@ export default ({ history }: RouteComponentProps) => {
Forgot password? diff --git a/resources/scripts/components/auth/ResetPasswordContainer.tsx b/resources/scripts/components/auth/ResetPasswordContainer.tsx index 22734bb72..9467bb92b 100644 --- a/resources/scripts/components/auth/ResetPasswordContainer.tsx +++ b/resources/scripts/components/auth/ResetPasswordContainer.tsx @@ -41,7 +41,7 @@ export default (props: Props) => { }) .then(() => { addFlash({ type: 'success', message: 'Your password has been reset, please login to continue.' }); - props.history.push('/login'); + props.history.push('/auth/login'); }) .catch(error => { console.error(error); @@ -97,7 +97,7 @@ export default (props: Props) => {
Return to Login diff --git a/resources/scripts/routers/AccountRouter.tsx b/resources/scripts/routers/AccountRouter.tsx index 7c5166285..47f07c387 100644 --- a/resources/scripts/routers/AccountRouter.tsx +++ b/resources/scripts/routers/AccountRouter.tsx @@ -1,11 +1,10 @@ import * as React from 'react'; -import { Route } from 'react-router-dom'; +import { Route, RouteComponentProps } from 'react-router-dom'; import DesignElements from '@/components/account/DesignElements'; -import TransitionRouter from '@/TransitionRouter'; -export default () => ( - - - - +export default ({ match }: RouteComponentProps) => ( +
+ + +
); diff --git a/resources/scripts/routers/AuthenticationRouter.tsx b/resources/scripts/routers/AuthenticationRouter.tsx index 5a36a16e6..4054f55d5 100644 --- a/resources/scripts/routers/AuthenticationRouter.tsx +++ b/resources/scripts/routers/AuthenticationRouter.tsx @@ -1,19 +1,16 @@ import React from 'react'; -import { Route } from 'react-router-dom'; +import { Route, RouteComponentProps } from 'react-router-dom'; import LoginContainer from '@/components/auth/LoginContainer'; import ForgotPasswordContainer from '@/components/auth/ForgotPasswordContainer'; import ResetPasswordContainer from '@/components/auth/ResetPasswordContainer'; -import TransitionRouter from '@/TransitionRouter'; import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer'; -export default () => ( - -
- - - - - -
-
+export default ({ match }: RouteComponentProps) => ( +
+ + + + + +
);