mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-31 08:29:36 +02:00
Weather settings view. API: select which keys to get from Config
This commit is contained in:
parent
216c12a33c
commit
316bc49f5c
8 changed files with 180 additions and 15 deletions
|
@ -1,16 +1,13 @@
|
|||
import { NavLink, Link, Switch, Route, withRouter, match } from 'react-router-dom';
|
||||
import { NavLink, Link, Switch, Route, withRouter } 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';
|
||||
|
||||
interface ComponentProps {
|
||||
match: match;
|
||||
}
|
||||
|
||||
const Settings = (props: ComponentProps): JSX.Element => {
|
||||
const Settings = (): JSX.Element => {
|
||||
return (
|
||||
<Container>
|
||||
<Headline
|
||||
|
@ -30,13 +27,14 @@ const Settings = (props: ComponentProps): JSX.Element => {
|
|||
className={classes.SettingsNavLink}
|
||||
activeClassName={classes.SettingsNavLinkActive}
|
||||
exact
|
||||
to='/settings/nothig'>
|
||||
to='/settings/weather'>
|
||||
Weather
|
||||
</NavLink>
|
||||
</nav>
|
||||
<section className={classes.SettingsContent}>
|
||||
<Switch>
|
||||
<Route exact path='/settings' component={Themer} />
|
||||
<Route path='/settings/weather' component={WeatherSettings} />
|
||||
</Switch>
|
||||
</section>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue