File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,9 @@ interface LayoutProps {
2525 * @param props.title - page title
2626 */
2727export default function Layout ( { children, progress, error, title } : LayoutProps ) {
28- const [ showWelcome , setShowWelcome ] = useState ( false )
29- const { customClass } = useConfig ( )
30-
3128 // Check localStorage on mount to see if the user has seen the welcome popup
32- useEffect ( ( ) => {
33- const dismissed = localStorage . getItem ( 'welcome:dismissed' ) === 'true'
34- setShowWelcome ( ! dismissed )
35- } , [ ] )
29+ const [ showWelcome , setShowWelcome ] = useState ( ( ) => localStorage . getItem ( 'welcome:dismissed' ) !== 'true' )
30+ const { customClass } = useConfig ( )
3631
3732 // Handle closing the welcome popup
3833 function handleCloseWelcome ( ) {
You can’t perform that action at this time.
0 commit comments