Skip to content

Commit

Permalink
🚨 Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLgr committed Oct 15, 2023
1 parent 3d84643 commit df6f37b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
30 changes: 11 additions & 19 deletions packages/website/src/__tests__/__snapshots__/pages.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1354,24 +1354,16 @@ exports[`Pages Index should render the page 1`] = `
<header
className="cardHeader"
>
<code>
<span>
:lock:
</span>
</code>
</button>
<p>
Fix security or privacy issues.
</p>
</div>
<div
className="gitmojiActions gitmojiShowOnHover"
onClick={[Function]}
>
<svg
className="icon icon-star"
height="20px"
width="20px"
<button
className="gitmoji-clipboard-emoji gitmoji"
data-clipboard-text="🔒️"
type="button"
>
🔒️
</button>
</header>
<div
className="gitmojiInfo"
>
<div
className="gitmojiInfoName"
Expand All @@ -1390,7 +1382,7 @@ exports[`Pages Index should render the page 1`] = `
</button>
</div>
<p>
Fix security issues.
Fix security or privacy issues.
</p>
</div>
<div
Expand Down
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 df6f37b

Please sign in to comment.