mirror of
https://github.com/strapi/strapi.git
synced 2025-08-31 20:33:03 +00:00
31 lines
759 B
JavaScript
31 lines
759 B
JavaScript
/**
|
|
*
|
|
* This component is the skeleton around the actual pages, and should only
|
|
* contain code that should be seen on all pages. (e.g. navigation bar)
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Switch, Route } from 'react-router-dom';
|
|
|
|
import pluginId from '../../pluginId';
|
|
|
|
// Containers
|
|
import ConfigPage from '../ConfigPage';
|
|
import HomePage from '../HomePage';
|
|
import NotFoundPage from '../NotFoundPage';
|
|
|
|
function App() {
|
|
return (
|
|
<div className={pluginId}>
|
|
<Switch>
|
|
<Route path={`/plugins/${pluginId}/configurations/:env`} component={ConfigPage} exact />
|
|
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
|
|
<Route component={NotFoundPage} />
|
|
</Switch>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App;
|