-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from disoul/release/1.2.0
Release/1.2.0
- Loading branch information
Showing
30 changed files
with
20,133 additions
and
412 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* index.tsx | ||
* Copyright (C) 2018 disoul <[email protected]> | ||
* | ||
* Distributed under terms of the MIT license. | ||
*/ | ||
import * as React from 'react'; | ||
import { withStyles } from '@material-ui/core/styles'; | ||
import Switch from '@material-ui/core/Switch'; | ||
|
||
interface State { | ||
} | ||
|
||
interface Props { | ||
classes: any; | ||
checked: boolean; | ||
onChange: any; | ||
} | ||
|
||
const style = { | ||
bar: { | ||
backgroundColor: '#fff', | ||
}, | ||
}; | ||
|
||
class DarkSwitch extends React.Component<Props, State> { | ||
public render(): JSX.Element { | ||
const { classes } = this.props; | ||
return ( | ||
<Switch | ||
classes={{ | ||
bar: classes.bar, | ||
}} | ||
checked={this.props.checked} | ||
onChange={this.props.onChange} | ||
/> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(style)(DarkSwitch); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.