colouring-montreal/app/src/frontend/theme-switcher.js

15 lines
420 B
JavaScript
Raw Normal View History

2018-09-13 11:03:49 -04:00
import React from 'react';
import './theme-switcher.css';
const ThemeSwitcher = (props) => (
2018-09-13 15:41:42 -04:00
<form className={`theme-switcher ${props.currentTheme}`} onSubmit={props.onSubmit}>
<button className="btn btn-outline btn-outline-dark"
2018-09-13 15:35:27 -04:00
type="submit">
2018-09-13 11:03:49 -04:00
Switch theme ({(props.currentTheme === 'light')? 'Light' : 'Night'})
</button>
</form>
);
export default ThemeSwitcher;