diff --git a/web/containers/CenterPanelContainer/index.tsx b/web/containers/CenterPanelContainer/index.tsx index fb2518dc7..b3df8face 100644 --- a/web/containers/CenterPanelContainer/index.tsx +++ b/web/containers/CenterPanelContainer/index.tsx @@ -18,19 +18,24 @@ import { } from '@/helpers/atoms/App.atom' import { reduceTransparentAtom } from '@/helpers/atoms/Setting.atom' -const CenterPanelContainer = ({ children }: PropsWithChildren) => { +type Props = { + isShowStarterScreen?: boolean +} & PropsWithChildren + +const CenterPanelContainer = ({ children, isShowStarterScreen }: Props) => { const reduceTransparent = useAtomValue(reduceTransparentAtom) const matches = useMediaQuery('(max-width: 880px)') const showLeftPanel = useAtomValue(showLeftPanelAtom) const showRightPanel = useAtomValue(showRightPanelAtom) const mainViewState = useAtomValue(mainViewStateAtom) + return (
{ +type Props = { + isShowStarterScreen?: boolean +} + +const OnDeviceStarterScreen = ({ isShowStarterScreen }: Props) => { const { extensionHasSettings } = useStarterScreen() const [searchValue, setSearchValue] = useState('') const [isOpen, setIsOpen] = useState(Boolean(searchValue.length)) @@ -103,7 +107,7 @@ const OnDeviceStarterScreen = () => { const [visibleRows, setVisibleRows] = useState(1) return ( - +
diff --git a/web/screens/Thread/index.tsx b/web/screens/Thread/index.tsx index 6789c181d..c3963067a 100644 --- a/web/screens/Thread/index.tsx +++ b/web/screens/Thread/index.tsx @@ -17,7 +17,7 @@ type Props = { const ThreadPanels = memo(({ isShowStarterScreen }: Props) => { return isShowStarterScreen ? ( - + ) : ( <>