Skip to content

Commit

Permalink
🚨 Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLgr committed Aug 23, 2023
1 parent 767de6b commit 38dccc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Gitmoji = (props: Props) => {
'_',
<>
_<wbr />
</>
</>,
)}
</code>
</button>
Expand Down
8 changes: 4 additions & 4 deletions packages/website/src/components/GitmojiList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const GitmojiList = (props: Props) => {
const [searchInput, setSearchInput] = useState('')
const [isListMode, setIsListMode] = useLocalStorage<boolean>(
'isListMode',
false
false,
)
const [pinnedEmojis, setPinnedEmojis] = useLocalStorage<string[]>(
'pinnedEmojis',
[]
[],
)
const [isMounted, setIsMounted] = useState<boolean>(false)
const [emojis, setEmojis] = useState([...props.gitmojis])
Expand Down Expand Up @@ -53,7 +53,7 @@ const GitmojiList = (props: Props) => {
const onPinClick = (code: string, emoji: string): void => {
if (isPinned(code)) {
setPinnedEmojis((current: string[]) =>
current.filter((pinned) => pinned !== code)
current.filter((pinned) => pinned !== code),
)
} else {
setPinnedEmojis((emojis: string[]) => [...emojis, code])
Expand All @@ -79,7 +79,7 @@ const GitmojiList = (props: Props) => {
fontWeight: 600,
fontSize: '90%',
},
}
},
)
}

Expand Down

0 comments on commit 38dccc0

Please sign in to comment.