diff --git a/src/pages/map/edit/index.tsx b/src/pages/map/edit/index.tsx index 639b0629..244f4387 100644 --- a/src/pages/map/edit/index.tsx +++ b/src/pages/map/edit/index.tsx @@ -29,7 +29,6 @@ import { Tooltip, rem, } from '@mantine/core'; -import { useClipboard, useDebouncedState } from '@mantine/hooks'; import { IconArrowsDiff, IconBrandMinecraft, @@ -49,25 +48,26 @@ import { SnapPointMode, SnapPolygonMode, } from 'mapbox-gl-draw-snap-mode'; +import { useClipboard, useDebouncedState } from '@mantine/hooks'; import { useEffect, useState } from 'react'; -import { useContextMenu } from '@/components/ContextMenu'; -import Page from '@/components/Page'; import { ClaimDrawerImages } from '@/components/map/ClaimDrawerImages'; +import { Discord } from '@icons-pack/react-simple-icons'; import Map from '@/components/map/Map'; import { MapContextMenu } from '@/components/map/MapContextMenu'; -import { useAccessToken } from '@/hooks/useAccessToken'; -import { usePermissions } from '@/hooks/usePermissions'; -import { useUser } from '@/hooks/useUser'; -import { Discord } from '@icons-pack/react-simple-icons'; -import { modals } from '@mantine/modals'; -import { showNotification } from '@mantine/notifications'; import MapboxDraw from '@mapbox/mapbox-gl-draw'; import { NextPage } from 'next'; +import Page from '@/components/Page'; +import { modals } from '@mantine/modals'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; +import { showNotification } from '@mantine/notifications'; +import { useAccessToken } from '@/hooks/useAccessToken'; +import { useContextMenu } from '@/components/ContextMenu'; +import { usePermissions } from '@/hooks/usePermissions'; import { useRouter } from 'next/router'; -import { useTranslation } from 'react-i18next'; import useSWR from 'swr'; +import { useTranslation } from 'react-i18next'; +import { useUser } from '@/hooks/useUser'; const ClaimEditPage: NextPage = () => { const { t } = useTranslation('map'); @@ -126,6 +126,7 @@ const ClaimEditPage: NextPage = () => { useEffect(() => { if (selected) { + console.log(selected); if (selected.properties?.new == true) { draw.setFeatureProperty(selected.id, 'new', undefined); draw diff --git a/src/pages/me/claims/[id].tsx b/src/pages/me/claims/[id].tsx index 6b86fd8d..aad09e66 100644 --- a/src/pages/me/claims/[id].tsx +++ b/src/pages/me/claims/[id].tsx @@ -20,7 +20,6 @@ import { Tooltip, rem, } from '@mantine/core'; -import { useClipboard, useDebouncedState } from '@mantine/hooks'; import { IconBrandMinecraft, IconCheck, @@ -32,23 +31,24 @@ import { IconPlus, IconTrash, } from '@tabler/icons-react'; +import { useClipboard, useDebouncedState } from '@mantine/hooks'; import { useEffect, useState } from 'react'; -import Page from '@/components/Page'; import { ClaimDrawerImages } from '@/components/map/ClaimDrawerImages'; -import Map from '@/components/map/Map'; -import { useAccessToken } from '@/hooks/useAccessToken'; -import { useUser } from '@/hooks/useUser'; -import thumbnail from '@/public/images/thumbnails/me.png'; -import fetcher from '@/utils/Fetcher'; import { Discord } from '@icons-pack/react-simple-icons'; -import { showNotification } from '@mantine/notifications'; +import Link from 'next/link'; +import Map from '@/components/map/Map'; import MapboxDraw from '@mapbox/mapbox-gl-draw'; import { NextPage } from 'next'; +import Page from '@/components/Page'; +import fetcher from '@/utils/Fetcher'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; -import Link from 'next/link'; +import { showNotification } from '@mantine/notifications'; +import thumbnail from '@/public/images/thumbnails/me.png'; +import { useAccessToken } from '@/hooks/useAccessToken'; import { useRouter } from 'next/router'; import { useTranslation } from 'react-i18next'; +import { useUser } from '@/hooks/useUser'; /* eslint-disable react-hooks/exhaustive-deps */ @@ -324,7 +324,7 @@ const ClaimPage: NextPage = ({ claimId, data }: any) => { } - disabled={!builder.name} + disabled={!builder.name} /* TODO */ onClick={() => clipboard.copy(builder.name)} > Copy Minecraft Name diff --git a/src/pages/me/review.tsx b/src/pages/me/review.tsx index ba8d0e62..8cab5de5 100644 --- a/src/pages/me/review.tsx +++ b/src/pages/me/review.tsx @@ -1,4 +1,4 @@ -import { Avatar, Badge, Button, Group, Table, Tooltip } from '@mantine/core'; +import { Avatar, Badge, Button, Code, Group, Table, Tooltip } from '@mantine/core'; import Page from '@/components/Page'; import { useUser } from '@/hooks/useUser'; @@ -33,6 +33,7 @@ const ReviewPage: NextPage = () => { Id Team Status + Username Created At @@ -67,6 +68,9 @@ const ReviewPage: NextPage = () => { Needs Review + + {a.user.username} + { Discord Name - {data?.user?.discordName} + {data?.user?.username} { Reviewer - {data?.reviewer?.discordName} + {data?.reviewer?.username} )} diff --git a/src/pages/teams/[team]/manage/review/index.tsx b/src/pages/teams/[team]/manage/review/index.tsx index ae2df1fe..3720ddda 100644 --- a/src/pages/teams/[team]/manage/review/index.tsx +++ b/src/pages/teams/[team]/manage/review/index.tsx @@ -1,25 +1,27 @@ import { ActionIcon, Badge, + Code, Group, Pagination, SimpleGrid, Table, + Text, Tooltip, useMantineTheme, } from '@mantine/core'; import { IconCheck, IconClock, IconQuestionMark, IconX } from '@tabler/icons-react'; +import { IconChevronRight } from '@tabler/icons-react'; +import Link from 'next/link'; import Page from '@/components/Page'; import SettingsTabs from '@/components/SettingsTabs'; import { StatsRing } from '@/components/Stats'; -import thumbnail from '@/public/images/thumbnails/teams.png'; import fetcher from '@/utils/Fetcher'; -import { IconChevronRight } from '@tabler/icons-react'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; -import Link from 'next/link'; -import { useState } from 'react'; +import thumbnail from '@/public/images/thumbnails/teams.png'; import useSWR from 'swr'; +import { useState } from 'react'; var vagueTime = require('vague-time'); const Review = ({ team }: any) => { @@ -92,6 +94,7 @@ const Review = ({ team }: any) => { Id Status + Username Trial Created At @@ -131,6 +134,9 @@ const Review = ({ team }: any) => { )} + + {a.user.username} + {a.trial ? 'Yes' : 'No'}