mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Start porting over the admin area to react
This commit is contained in:
16
resources/scripts/routers/AdminRouter.tsx
Normal file
16
resources/scripts/routers/AdminRouter.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import { Route, RouteComponentProps, Switch } from 'react-router-dom';
|
||||
import TransitionRouter from '@/TransitionRouter';
|
||||
import NotFound from '@/components/screens/NotFound';
|
||||
import AdminContainer from '@/components/admin/AdminContainer';
|
||||
|
||||
export default ({ location, match }: RouteComponentProps) => {
|
||||
return (
|
||||
<TransitionRouter>
|
||||
<Switch location={location}>
|
||||
<Route path={`${match.path}/`} component={AdminContainer} exact />
|
||||
<Route path={'*'} component={NotFound} />
|
||||
</Switch>
|
||||
</TransitionRouter>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user