Skip to content

Commit

Permalink
Merge pull request #36 from fiatjaf/switch-ischecked
Browse files Browse the repository at this point in the history
fix `<Switch>` property: `checked` => `isChecked`
  • Loading branch information
hzrd149 authored Oct 24, 2023
2 parents ebc00f9 + 4262fab commit 21a1317
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/emoji-packs/browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function EmojiPacksBrowsePage() {
<VerticalPageLayout>
<Flex gap="2" alignItems="center" wrap="wrap">
<PeopleListSelection />
<Switch checked={showEmpty.isOpen} onChange={showEmpty.onToggle} whiteSpace="pre">
<Switch isChecked={showEmpty.isOpen} onChange={showEmpty.onToggle} whiteSpace="pre">
Show Empty
</Switch>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion src/views/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function HomePage() {
const header = (
<Flex gap="2" wrap="wrap" px={["2", 0]} alignItems="center">
<PeopleListSelection />
<Switch checked={showReplies.isOpen} onChange={showReplies.onToggle}>
<Switch isChecked={showReplies.isOpen} onChange={showReplies.onToggle}>
Show Replies
</Switch>
<RelaySelectionButton ml="auto" />
Expand Down
4 changes: 2 additions & 2 deletions src/views/lists/browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ function BrowseListPage() {
<option value={PEOPLE_LIST_KIND}>People List</option>
<option value={NOTE_LIST_KIND}>Note List</option>
</Select>
<Switch checked={showEmpty.isOpen} onChange={showEmpty.onToggle} whiteSpace="pre">
<Switch isChecked={showEmpty.isOpen} onChange={showEmpty.onToggle} whiteSpace="pre">
Show Empty
</Switch>
<Switch checked={showMute.isOpen} onChange={showMute.onToggle} whiteSpace="pre">
<Switch isChecked={showMute.isOpen} onChange={showMute.onToggle} whiteSpace="pre">
Show Mute
</Switch>
</Flex>
Expand Down

0 comments on commit 21a1317

Please sign in to comment.