From 9f77936e3e1762448f8191000194470ed1b4b192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 11 Aug 2024 13:06:38 -0500 Subject: [PATCH] feat: reset button --- .../tools/embed/[embed]/customize/page.tsx | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/app/tools/embed/[embed]/customize/page.tsx b/src/app/tools/embed/[embed]/customize/page.tsx index 03c3019de..e00cf28f2 100644 --- a/src/app/tools/embed/[embed]/customize/page.tsx +++ b/src/app/tools/embed/[embed]/customize/page.tsx @@ -5,19 +5,11 @@ import { HeightIcon, ImageIcon, Link2Icon, + ResetIcon, TimerIcon, WidthIcon, } from '@radix-ui/react-icons'; -import { - AlertDialog, - Box, - Button, - Flex, - Heading, - ScrollArea, - Text, - TextField, -} from '@radix-ui/themes'; +import { Box, Button, Flex, Heading, ScrollArea, Text } from '@radix-ui/themes'; import { capitalize, startCase } from 'lodash'; import { ReactNode, useEffect, useRef, useState } from 'react'; import { CopyButton } from '../../../../../components/CopyButton'; @@ -32,6 +24,7 @@ import { configurations } from '../../configurations'; import { Boolean } from './components/Boolean'; import { Color } from './components/Color'; import { Enum } from './components/Enum'; +import { Import } from './components/Import'; import { PreviewWrapper } from './components/PreviewWrapper'; import { Radius } from './components/Radius'; import { RichText } from './components/RichText'; @@ -39,7 +32,6 @@ import { Size } from './components/Size'; import { SizeWithout0 } from './components/SizeWithout0'; import { Slider } from './components/Slider'; import { Text as TextController } from './components/Text'; -import { Import } from './components/Import'; export interface EmbedPreviewControllerProps { configKey: string; @@ -76,7 +68,7 @@ export default function Page({ style={{ height: '100%', maxWidth: 320 }} > - + Export @@ -140,7 +132,21 @@ export default function Page({ - Customize + + Customize + + Bells and whistles of your embed