1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-02 11:30:22 +02:00

Settings: fix styling and outline flickr issue

This commit is contained in:
Kushagra Gour
2018-11-13 11:19:35 +05:30
parent 29725026ee
commit 097acc743a
2 changed files with 5 additions and 8 deletions

View File

@@ -6,11 +6,7 @@ import { Divider } from './common';
function CheckboxSetting({ label, onChange, pref }) {
return (
<Switch
checked={pref}
onChange={onChange}
class={`line ${showWhenExtension ? 'show-when-extension' : ''} `}
>
<Switch checked={pref} onChange={onChange}>
{label}
</Switch>
);
@@ -79,8 +75,8 @@ export default class Settings extends Component {
<p class="help-text">
Preview will refresh when you resize the preview pane
</p>
<Divider />
<div class="show-when-extension">
<Divider />
<CheckboxSetting
label="Replace new tab page"
pref={prefs.replaceNewTab}