Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
refactor: rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
D33102 committed Jul 13, 2023
1 parent 1794e09 commit 37c95a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/BaanSelection/components/ListBaan.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pages/BaanSelection/components/SelectedBaan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 37c95a0

Please sign in to comment.