Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Modify to generate new README.md
  • Loading branch information
sosukesuzuki committed Jan 26, 2019
commit f871c41cd51b958737f074d9362965ac2f30a5af
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,9 @@ export default Counter;
import * as React from 'react';
import ThemeContext from '../context/theme-context';

interface ThemedButtonProps {}
type Props = {};

export default function ThemeToggleButton(props: ThemedButtonProps) {
export default function ThemeToggleButton(props: Props) {
const { theme, toggleTheme } = React.useContext(ThemeContext);
return (
<button onClick={toggleTheme} style={theme} >
Expand Down