From ea8b463850cd23112bcd572d58d86d64ff1eec76 Mon Sep 17 00:00:00 2001 From: Gediminas Zukas <136955+gzukas@users.noreply.github.com> Date: Thu, 27 Feb 2025 21:54:15 +0200 Subject: [PATCH 1/2] chore: minor tweaks --- apps/web/src/App.tsx | 14 +++++++------- apps/web/src/components/ImportImages.tsx | 4 ++-- apps/web/src/components/NoImages.tsx | 24 ++++++++++++++++++------ 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 1a11a7b..a18f4c5 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -18,8 +18,8 @@ export function App() { return (
-
-
+
+
@@ -33,22 +33,22 @@ export function App() {
- +
-
+
} > } />
-
-
+
+
diff --git a/apps/web/src/components/ImportImages.tsx b/apps/web/src/components/ImportImages.tsx index 6faa7ec..082d9c0 100644 --- a/apps/web/src/components/ImportImages.tsx +++ b/apps/web/src/components/ImportImages.tsx @@ -90,7 +90,7 @@ export function ImportImages(props: ImportImagesProps) {
@@ -204,7 +204,7 @@ export function ImportImages(props: ImportImagesProps) { 'animate-spin': isImporting })} /> - Import + Capture diff --git a/apps/web/src/components/NoImages.tsx b/apps/web/src/components/NoImages.tsx index e07991b..cab0ae1 100644 --- a/apps/web/src/components/NoImages.tsx +++ b/apps/web/src/components/NoImages.tsx @@ -1,13 +1,16 @@ import { useSetAtom } from 'jotai'; import { ImageOff, Folder } from 'lucide-react'; import { Trans } from '@lingui/react/macro'; +import { cn } from '@workspace/ui/lib/utils'; import { Button } from '@workspace/ui/components/button'; import { Shortcut } from '@/components/Shortcut'; import { importAtom, importSignalAtom } from '@/atoms/importAtoms'; import { siteConfig } from '@/config/site'; import { HOTKEYS } from '@/constants'; -export function NoImages() { +export type NoImagesProps = React.ComponentProps<'div'>; + +export function NoImages(props: NoImagesProps) { const importImage = useSetAtom(importAtom); const toggleImportSignal = useSetAtom(importSignalAtom); @@ -20,21 +23,30 @@ export function NoImages() { }; return ( -
- -

+
+ +

No images

- Get started by importing your images or check out the example to see + Get started by choosing your images or check out the example to see how it works.

-
+
} > @@ -47,7 +48,7 @@ export function App() {
-