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 = () => {
{a.user.username}
+ {a.user.username}
+