diff --git a/src/pages/BaanSelection/components/ListBaan.tsx b/src/pages/BaanSelection/components/ListBaan.tsx index 851b1a4..febf006 100644 --- a/src/pages/BaanSelection/components/ListBaan.tsx +++ b/src/pages/BaanSelection/components/ListBaan.tsx @@ -1,5 +1,5 @@ import Image from 'next/image'; -import { convertSize, isAdded } from '../hooks/hooks'; +import { convertSize, isAdded } from '../hooks/Utility'; import { IBaan } from '@/types/baan'; const ListBaan = (props: any) => { return props.baan diff --git a/src/pages/BaanSelection/components/SelectedBaan.tsx b/src/pages/BaanSelection/components/SelectedBaan.tsx index f626022..fbe32f5 100644 --- a/src/pages/BaanSelection/components/SelectedBaan.tsx +++ b/src/pages/BaanSelection/components/SelectedBaan.tsx @@ -2,7 +2,7 @@ import TrashIcon from '@heroicons/react/24/solid/TrashIcon'; import { SelectedBaanRank } from '../hooks/types'; import Image from 'next/image'; import { BaanSize } from '@/types/baan'; -import { convertSize } from '../hooks/hooks'; +import { convertSize } from '../hooks/Utility'; const SelectedBaan = (props: any) => { return props.baan.map((e: SelectedBaanRank) => { //Convert chosen baans to TSX (a bit messy, sry) diff --git a/src/pages/BaanSelection/hooks/hooks.tsx b/src/pages/BaanSelection/hooks/utility.tsx similarity index 82% rename from src/pages/BaanSelection/hooks/hooks.tsx rename to src/pages/BaanSelection/hooks/utility.tsx index f7394b9..151d6ef 100644 --- a/src/pages/BaanSelection/hooks/hooks.tsx +++ b/src/pages/BaanSelection/hooks/utility.tsx @@ -1,7 +1,7 @@ import { BaanSize, IBaan } from '@/types/baan'; -import { SelectedBaan } from './types'; +import { SelectedBaanRank } from './types'; -export const isAdded = (selectedBaan: SelectedBaan[], other: IBaan) => { +export const isAdded = (selectedBaan: SelectedBaanRank[], other: IBaan) => { //Check if the baan is selected and will not be visualized in Baan list for (let i: number = 0; i < 3; i++) { if (selectedBaan[i].id === other.id) return false;