From d02ffdcb216ef5d39a49934682e4084dedd0f48d Mon Sep 17 00:00:00 2001 From: SoCuul Date: Wed, 5 Nov 2025 20:55:05 -0800 Subject: [PATCH] Theme initial setup popup to match rest of extension --- src/@/components/Modal.tsx | 27 ----------- src/@/components/NotConfigured.tsx | 25 ++++++++++ src/pages/Popup/App.tsx | 73 ++++++++++++++++-------------- 3 files changed, 64 insertions(+), 61 deletions(-) delete mode 100644 src/@/components/Modal.tsx create mode 100644 src/@/components/NotConfigured.tsx diff --git a/src/@/components/Modal.tsx b/src/@/components/Modal.tsx deleted file mode 100644 index 994e6a6..0000000 --- a/src/@/components/Modal.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { FC } from 'react'; -import { openOptions } from '../lib/utils.ts'; -import { Button } from './ui/Button.tsx'; - -interface ModalProps { - open: boolean; -} - -const Modal: FC = ({ open }) => { - if (!open) return null; - - return ( -
-
-

Initial Config

- -
- -
-
-
- ); -}; - -export default Modal; diff --git a/src/@/components/NotConfigured.tsx b/src/@/components/NotConfigured.tsx new file mode 100644 index 0000000..4153121 --- /dev/null +++ b/src/@/components/NotConfigured.tsx @@ -0,0 +1,25 @@ +import { FC } from 'react'; +import { openOptions } from '../lib/utils.ts'; +import { Button } from './ui/Button.tsx'; + +const NotConfigured: FC = () => { + return ( +
+
+ Linkwarden Logo +

Initial Setup

+
+ +
+ ) +}; + +export default NotConfigured; diff --git a/src/pages/Popup/App.tsx b/src/pages/Popup/App.tsx index c527485..f09efd4 100644 --- a/src/pages/Popup/App.tsx +++ b/src/pages/Popup/App.tsx @@ -4,7 +4,7 @@ import BookmarkForm from '../../@/components/BookmarkForm.tsx'; import { openOptions } from '../../@/lib/utils.ts'; import { useEffect, useState } from 'react'; import { getConfig, isConfigured } from '../../@/lib/config.ts'; -import Modal from '../../@/components/Modal.tsx'; +import NotConfigured from '../../@/components/NotConfigured.tsx'; import { ModeToggle } from '../../@/components/ModeToggle.tsx'; function App() { @@ -22,39 +22,44 @@ function App() { return ( - -
-
- - Linkwarden Logo - -

Add Link

-
-
- -

- Config -

-
-
- - -
+ { + isAllConfigured ? ( + +
+
+ + Linkwarden Logo + +

Add Link

+
+
+ +

+ Config +

+
+
+ +
+ ) : ( + + ) + }
); }