Skip to content

Commit

Permalink
💄 clean unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMazout committed Jul 3, 2024
1 parent 13a0300 commit 0049de0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions motivator/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ const Signup = (props: Props) => {
}, [assessorSlotID])

const weekNumber = Number(process.env.NEXT_PUBLIC_WEEK_ACTUAL)
const weekMax = Number(process.env.NEXT_PUBLIC_WEEK_MAX)

// TODO : Rework this it's blocking the rendering
// const { data: assessorSlotsAvailable } = useGetNumberAssessorSlotAvailable()

const ComponentToDisplay = () => {
if (assessorSlotID?.res?.assessorSlotCore.id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ export const columns: ColumnDef<AuditAssessorsSlotsDatatable>[] = [
<Link
href={`/assessor/slot/${row.original.assessorSlotID.id}`}
>
{/* <p className="font-extralight text-center text-xs">
Assessor Addr
</p> */}
<AddrAvatar
addressName={assessorAddress}
isDatatableStyle
Expand Down Expand Up @@ -92,7 +89,6 @@ export const columns: ColumnDef<AuditAssessorsSlotsDatatable>[] = [
Assessor Slot ID
</p>
<div className="flex items-center gap-1">
{/* <AiOutlineAudit className="h-4 w-4" /> */}
<p className="font-bold">
{assessorSlotID.id}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,11 @@ export const DataTableContainerAssessor = () => {
assessorSlotID: slotID as string,
})

// const { data, error, status, refetch } = useGetAssessorSlotWithAddr({
// assessorAddr: address as string,
// })

// Refresh the data when the account is connected
useEffect(() => {
if (statusAccount === 'connected' && refetch) refetch()
}, [refetch, statusAccount])

// // Redirecting to avoid error
// useEffect(() => {
// if (data?.status == 'ko' || data?.res === undefined) {
// // if (statusAccount === 'connected' && refetch) refetch()

// if ((data?.res as AssessorSlot) === undefined) {
// push(`/`)
// }
// }
// }, [data?.res])

// Implement Skeletton
if (status != 'success' || (data.res as AssessorSlot) === undefined) {
return (
Expand Down

0 comments on commit 0049de0

Please sign in to comment.