From 28882d98d95f1c8bc7805eadedaf2936a63a426b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 2 Apr 2024 17:42:51 +0800 Subject: [PATCH] Add different UI state than default for start --- src/components/timeline.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index 84b234ed..1a878dc9 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -51,7 +51,7 @@ function Timeline({ }) { const snapStates = useSnapshot(states); const [items, setItems] = useState([]); - const [uiState, setUIState] = useState('default'); + const [uiState, setUIState] = useState('start'); const [showMore, setShowMore] = useState(false); const [showNew, setShowNew] = useState(false); const [visible, setVisible] = useState(true); @@ -496,7 +496,8 @@ function Timeline({ )} ) : ( - uiState !== 'error' &&

{emptyText}

+ uiState !== 'error' && + uiState !== 'start' &&

{emptyText}

)} {uiState === 'error' && (