Skip to content

Commit 06a5b3e

Browse files
committed
refactor: all read emojis constant
1 parent 55a2ed0 commit 06a5b3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/AllRead.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Constants } from '../utils/constants';
44
export const AllRead = () => {
55
const emoji = useMemo(
66
() =>
7-
Constants.ALLREAD_EMOJIS[
8-
Math.floor(Math.random() * Constants.ALLREAD_EMOJIS.length)
7+
Constants.ALL_READ_EMOJIS[
8+
Math.floor(Math.random() * Constants.ALL_READ_EMOJIS.length)
99
],
1010
[],
1111
);

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const Constants = {
1818
// Storage
1919
STORAGE_KEY: 'gitify-storage',
2020

21-
ALLREAD_EMOJIS: ['😉', '🎉', '🐯', '🙈', '🎈', '🎊', '👏', '🎪', '🍝'],
21+
ALL_READ_EMOJIS: ['😉', '🎉', '🐯', '🙈', '🎈', '🎊', '👏', '🎪', '🍝'],
2222

2323
FETCH_INTERVAL: 60000,
2424

0 commit comments

Comments
 (0)