|
@@ -1,12 +1,14 @@
|
|
-import { NavLink, Link, Switch, Route, withRouter } from 'react-router-dom';
|
|
|
|
|
|
+import { NavLink, Link, Switch, Route } from 'react-router-dom';
|
|
|
|
|
|
import classes from './Settings.module.css';
|
|
import classes from './Settings.module.css';
|
|
|
|
|
|
import { Container } from '../UI/Layout/Layout';
|
|
import { Container } from '../UI/Layout/Layout';
|
|
import Headline from '../UI/Headlines/Headline/Headline';
|
|
import Headline from '../UI/Headlines/Headline/Headline';
|
|
|
|
+
|
|
import Themer from '../Themer/Themer';
|
|
import Themer from '../Themer/Themer';
|
|
import WeatherSettings from './WeatherSettings/WeatherSettings';
|
|
import WeatherSettings from './WeatherSettings/WeatherSettings';
|
|
import OtherSettings from './OtherSettings/OtherSettings';
|
|
import OtherSettings from './OtherSettings/OtherSettings';
|
|
|
|
+import AppDetails from './AppDetails/AppDetails';
|
|
|
|
|
|
const Settings = (): JSX.Element => {
|
|
const Settings = (): JSX.Element => {
|
|
return (
|
|
return (
|
|
@@ -38,12 +40,20 @@ const Settings = (): JSX.Element => {
|
|
to='/settings/other'>
|
|
to='/settings/other'>
|
|
Other
|
|
Other
|
|
</NavLink>
|
|
</NavLink>
|
|
|
|
+ <NavLink
|
|
|
|
+ className={classes.SettingsNavLink}
|
|
|
|
+ activeClassName={classes.SettingsNavLinkActive}
|
|
|
|
+ exact
|
|
|
|
+ to='/settings/app'>
|
|
|
|
+ App
|
|
|
|
+ </NavLink>
|
|
</nav>
|
|
</nav>
|
|
<section className={classes.SettingsContent}>
|
|
<section className={classes.SettingsContent}>
|
|
<Switch>
|
|
<Switch>
|
|
<Route exact path='/settings' component={Themer} />
|
|
<Route exact path='/settings' component={Themer} />
|
|
<Route path='/settings/weather' component={WeatherSettings} />
|
|
<Route path='/settings/weather' component={WeatherSettings} />
|
|
<Route path='/settings/other' component={OtherSettings} />
|
|
<Route path='/settings/other' component={OtherSettings} />
|
|
|
|
+ <Route path='/settings/app' component={AppDetails} />
|
|
</Switch>
|
|
</Switch>
|
|
</section>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
@@ -51,4 +61,4 @@ const Settings = (): JSX.Element => {
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
|
|
-export default withRouter(Settings);
|
|
|
|
|
|
+export default Settings;
|