1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-02 09:25:17 +02:00

Case-insensitive sorting. App version checking

This commit is contained in:
unknown 2021-06-15 12:36:23 +02:00
parent e884c84aa8
commit 9a1ec76ffd
15 changed files with 104 additions and 11 deletions

View file

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