From 3e5a6478f46ed8016baae58fef68a99e943b4ca3 Mon Sep 17 00:00:00 2001 From: Siah Date: Mon, 23 Oct 2023 11:17:00 +0800 Subject: [PATCH 01/10] feat: try add push to top button --- src/Document.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Document.tsx b/src/Document.tsx index c490029..cdcd1bd 100644 --- a/src/Document.tsx +++ b/src/Document.tsx @@ -1,5 +1,5 @@ import {useContext, useMemo, type ReactNode} from 'react' -import {ChevronDownIcon, ChevronUpIcon, DragHandleIcon} from '@sanity/icons' +import {ChevronDownIcon, ChevronUpIcon, DoubleChevronUpIcon, DragHandleIcon} from '@sanity/icons' import {AvatarCounter, Card, Box, Button, Flex, Text} from '@sanity/ui' import {useSchema, SchemaType, PreviewCard, Preview} from 'sanity' import {usePaneRouter} from 'sanity/desk' @@ -88,6 +88,15 @@ export default function Document({ onClick={() => increment(index, index + 1, doc._id, entities)} icon={ChevronDownIcon} /> + +