fix popup header

This commit is contained in:
Gabe Yuan
2023-09-04 23:24:50 +08:00
parent 40adf85b20
commit 6ec16e1f98

View File

@@ -96,8 +96,12 @@ export default function Popup({ setShowPopup, translator: tran }) {
if (!rule) { if (!rule) {
return ( return (
<Box minWidth={300}> <Box minWidth={300}>
<Header /> {isExt && (
<Divider /> <>
<Header />
<Divider />
</>
)}
<Stack sx={{ p: 2 }} spacing={3}> <Stack sx={{ p: 2 }} spacing={3}>
<Button variant="text" onClick={handleOpenSetting}> <Button variant="text" onClick={handleOpenSetting}>
{i18n("setting")} {i18n("setting")}
@@ -111,8 +115,12 @@ export default function Popup({ setShowPopup, translator: tran }) {
return ( return (
<Box minWidth={300}> <Box minWidth={300}>
<Header /> {isExt && (
<Divider /> <>
<Header />
<Divider />
</>
)}
<Stack sx={{ p: 2 }} spacing={2}> <Stack sx={{ p: 2 }} spacing={2}>
<Stack <Stack
direction="row" direction="row"