Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Mar 24, 2024
1 parent 065a7c3 commit b1611d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion client/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@

module.exports = {
env: {
es2021: true,
node: true,
browser: true
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:react/jsx-runtime', 'next/core-web-vitals', 'next'],
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:react/jsx-runtime', 'next'],
plugins: ['react'],
overrides: [
{
files: ['*.{js,jsx}'],
parserOptions: {
ecmaFeatures: {
jsx: true
Expand Down
2 changes: 1 addition & 1 deletion client/app/(emojis)/emojis/components/Hero/Emojis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import EmojiCard from '@/app/(emojis)/emojis/components/Hero/EmojiCard';
import EmojiPackageCard from '@/app/(emojis)/emojis/components/Hero/EmojiPackageCard';

export default function Emojis() {
const { page, setPage, search, setSearch, loading, emojis, fetchEmojis, maxReached, setSort, setCategory, totalEmojis, limit } = useSearchStore(useShallow(state => ({
const { page, setPage, search, setSearch, loading, emojis, fetchEmojis, setSort, setCategory, totalEmojis, limit } = useSearchStore(useShallow(state => ({
page: state.page,
setPage: state.setPage,
search: state.search,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function Sidebar() {
setCategory('All');
setSort('Newest');
fetchEmojis('');
setPages(1);
setPage(1);
}}
disabled={(selectedCategory === 'All' && sort === 'Newest') || loading}
>
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/Pagination/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ export default function Pagination({ page, setPage, loading, total, limit }) {
<CgChevronRight />
</button>
</motion.div>
)
);
}

0 comments on commit b1611d8

Please sign in to comment.