From feff32f588954332be057d842f935b68190ec1e9 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Sun, 23 Feb 2025 19:43:45 +0800 Subject: [PATCH] feat: update social share component, and enhance modal structure --- app/components/popup/modal.tsx | 6 ++-- .../ui/{icons-social.tsx => social-share.tsx} | 0 app/layouts/news/default.tsx | 6 ++-- .../news}/form-forgot-password.tsx | 0 .../ui => layouts/news}/form-login.tsx | 3 +- .../ui => layouts/news}/form-register.tsx | 0 .../ui => layouts/news}/form-subscription.tsx | 0 app/pages/news-detail/index.tsx | 6 ++-- package.json | 4 ++- pnpm-lock.yaml | 30 ++++++++++++++----- 10 files changed, 37 insertions(+), 18 deletions(-) rename app/components/ui/{icons-social.tsx => social-share.tsx} (100%) rename app/{components/ui => layouts/news}/form-forgot-password.tsx (100%) rename app/{components/ui => layouts/news}/form-login.tsx (98%) rename app/{components/ui => layouts/news}/form-register.tsx (100%) rename app/{components/ui => layouts/news}/form-subscription.tsx (100%) diff --git a/app/components/popup/modal.tsx b/app/components/popup/modal.tsx index c7bea37..544ce51 100644 --- a/app/components/popup/modal.tsx +++ b/app/components/popup/modal.tsx @@ -23,7 +23,6 @@ export const PopupModal = ({ children, description, }: ModalProperties) => { - if (!isOpen) return return (
- +