From bdec63bcf15d840bca535506a988ad62c45096df Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Mon, 12 Aug 2024 19:02:36 +1000 Subject: [PATCH] loading state UI changes --- client/src/App.tsx | 2 ++ client/src/components/Forms/PostFormCard.tsx | 2 +- .../Modals/CheckMobile/CheckMobile.tsx | 10 ++++----- client/src/components/Modals/OptionsBar.tsx | 2 +- client/src/components/Modals/Placeholder.tsx | 2 +- client/src/components/TestUI.tsx | 21 +++++++++++++++++++ client/src/components/Thread.tsx | 6 +++++- 7 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 client/src/components/TestUI.tsx diff --git a/client/src/App.tsx b/client/src/App.tsx index 32f3bd1..43e5340 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -6,6 +6,7 @@ import Thread from "./components/Thread"; import Header from "./components/Header/Header"; import AddToHomeScreenPrompt from "./components/Modals/CheckMobile/CheckMobile"; import Notifications from "./components/Notifications"; +import TestUI from "./components/TestUI"; function App() { return ( @@ -16,6 +17,7 @@ function App() { } /> } /> } /> + } /> diff --git a/client/src/components/Forms/PostFormCard.tsx b/client/src/components/Forms/PostFormCard.tsx index 129fbb0..3aec30d 100644 --- a/client/src/components/Forms/PostFormCard.tsx +++ b/client/src/components/Forms/PostFormCard.tsx @@ -163,7 +163,7 @@ const NewNoteCard = ({

- {difficulty} PoW + {difficulty} Work

diff --git a/client/src/components/Modals/CheckMobile/CheckMobile.tsx b/client/src/components/Modals/CheckMobile/CheckMobile.tsx index 32a8ff8..d2691ae 100644 --- a/client/src/components/Modals/CheckMobile/CheckMobile.tsx +++ b/client/src/components/Modals/CheckMobile/CheckMobile.tsx @@ -29,11 +29,11 @@ const AddToHomeScreenPrompt: React.FC = () => { const detectMobileBrowser = () => { return ( (navigator.userAgent.match(/Android/i) || - navigator.userAgent.match(/webOS/i) || - navigator.userAgent.match(/iPhone/i) || - navigator.userAgent.match(/iPad/i) || - navigator.userAgent.match(/iPod/i) || - navigator.userAgent.match(/Windows Phone/i)) + navigator.userAgent.match(/webOS/i) || + navigator.userAgent.match(/iPhone/i) || + navigator.userAgent.match(/iPad/i) || + navigator.userAgent.match(/iPod/i) || + navigator.userAgent.match(/Windows Phone/i)) ); }; diff --git a/client/src/components/Modals/OptionsBar.tsx b/client/src/components/Modals/OptionsBar.tsx index a2edff8..7c6d1de 100644 --- a/client/src/components/Modals/OptionsBar.tsx +++ b/client/src/components/Modals/OptionsBar.tsx @@ -30,7 +30,7 @@ const OptionsBar: React.FC = ({ sortByTime, setAnon, toggleSort
- {sortByTime ? 'PoW' : 'Time'} + {sortByTime ? 'Sort by Work' : 'Sort by Time'}
} {toggleAnon &&