Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Karkar1ch committed Oct 17, 2024
1 parent acadfb7 commit c71ea96
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
8 changes: 8 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ const nextConfig = {
experimental: {
missingSuspenseWithCSRBailout: false,
},
eslint: {
rules: {
'next/no-img-element': 'off',
},
},
experimental: {
buildCache: true,
},
images: {
remotePatterns: [
{
Expand Down
2 changes: 0 additions & 2 deletions src/app/admin/(sections)/batches/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { Batch, Game } from '@/types/admin.interface';
import Button2 from '@/components/interface/admin/Button2';
import { useRouter } from 'next/navigation';
import { axiosWithAuthAdmin } from '@/api/intreceptors';
import Delete from '@/components/interface/admin/Delete';
import Setting from '@/components/interface/admin/Still';
import Button from '@/components/interface/Button'
import { authService } from '@/services/auth/auth.services';
import { FaDoorOpen } from "react-icons/fa6";
Expand Down
9 changes: 1 addition & 8 deletions src/app/admin/(sections)/loot-cases/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { axiosWithAuthAdmin } from '@/api/intreceptors'
import { IoIosCheckmark } from "react-icons/io";


const LootCreate = (checked: boolean) => {
const LootCreate = () => {
const [loading, setLoading] = useState(true)
const [games, setGames] = useState<Game[]>([])
const [batches, setBatches] = useState<Batch[]>([])
Expand Down Expand Up @@ -206,13 +206,6 @@ const LootCreate = (checked: boolean) => {
checked={isVisible}
onChange={e => setIsVisible(e.target.checked)}
/>
<div
className={`relative w-6 h-6 border-2 rounded-md border-[#AABCF9] transition-colors duration-300 ease-in-out hover:bg-[#22276E] ${checked ? 'bg-[#7E50FF] border-[#7E50FF] shadow-[4px_4px_34px_0_rgba(139,50,252,0.2)] transform scale-105' : 'border-[#AABCF9]'}`}
>
{checked && (
<IoIosCheckmark className="absolute w-5 h-5 text-white top-0 left-0 transition-transform duration-300 ease-in-out" />
)}
</div>
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/hook/animation/useMenuAnimation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function useMenuAnimation(isOpen: boolean) {
delay: isOpen ? staggerMenuItems : 0,
}
);
}, [isOpen]);
}, [animate]);

return scope;
}
2 changes: 1 addition & 1 deletion src/hook/animation/useSelectPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function useSelectPage(isOpen: boolean) {
delay: isOpen ? staggerMenuItems : 0,
}
);
}, [isOpen]);
}, [animate]);

return scope;
}

0 comments on commit c71ea96

Please sign in to comment.