Merge pull request #1862 from bluewave-labs/fix/group-depin-items

group depin settings items
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-03-03 13:36:47 -08:00
commit f7f80d2ba0
1 file changed
+35 -32
+35 -32
View File
@@ -219,7 +219,8 @@ const Settings = () => {
<Box> <Box>
<Typography component="h1">{t("settingsGeneralSettings")}</Typography> <Typography component="h1">{t("settingsGeneralSettings")}</Typography>
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(2) }}> <Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(2) }}>
<Typography component="span">{t("settingsDisplayTimezone")}</Typography>- {t("settingsDisplayTimezoneDescription")} <Typography component="span">{t("settingsDisplayTimezone")}</Typography>-{" "}
{t("settingsDisplayTimezoneDescription")}
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.spacing(20)}> <Stack gap={theme.spacing(20)}>
@@ -242,17 +243,17 @@ const Settings = () => {
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.spacing(20)}> <Stack gap={theme.spacing(20)}>
<Select <Select
id="theme-mode" id="theme-mode"
label={t("settingsThemeMode")} label={t("settingsThemeMode")}
value={mode} value={mode}
onChange={(e) => { onChange={(e) => {
dispatch(setMode(e.target.value)); dispatch(setMode(e.target.value));
}} }}
items={[ items={[
{ _id: "light", name: "Light" }, { _id: "light", name: "Light" },
{ _id: "dark", name: "Dark" }, { _id: "dark", name: "Dark" },
]} ]}
></Select> ></Select>
<Select <Select
id="language" id="language"
@@ -283,7 +284,28 @@ const Settings = () => {
dispatch(setDistributedUptimeEnabled(e.target.checked)); dispatch(setDistributedUptimeEnabled(e.target.checked));
}} }}
/> />
{distributedUptimeEnabled === true ? t("settingsEnabled") : t("settingsDisabled")} {distributedUptimeEnabled === true
? t("settingsEnabled")
: t("settingsDisabled")}
</Box>
</ConfigBox>
)}
{isAdmin && (
<ConfigBox>
<Box>
<Typography component="h1">{t("settingsWallet")}</Typography>
<Typography sx={{ mt: theme.spacing(2) }}>
{t("settingsWalletDescription")}
</Typography>
</Box>
<Box>
<Stack
direction="row"
spacing={2}
>
<WalletMultiButton />
<WalletDisconnectButton />
</Stack>
</Box> </Box>
</ConfigBox> </ConfigBox>
)} )}
@@ -378,25 +400,6 @@ const Settings = () => {
/> />
</ConfigBox> </ConfigBox>
)} )}
{isAdmin && (
<ConfigBox>
<Box>
<Typography component="h1">{t("settingsWallet")}</Typography>
<Typography sx={{ mt: theme.spacing(2) }}>
{t("settingsWalletDescription")}
</Typography>
</Box>
<Box>
<Stack
direction="row"
spacing={2}
>
<WalletMultiButton />
<WalletDisconnectButton />
</Stack>
</Box>
</ConfigBox>
)}
<ConfigBox> <ConfigBox>
<Box> <Box>