diff --git a/src/components/profile/profile-item.tsx b/src/components/profile/profile-item.tsx index c0c6fc8..72ffe56 100644 --- a/src/components/profile/profile-item.tsx +++ b/src/components/profile/profile-item.tsx @@ -243,6 +243,7 @@ export const ProfileItem = (props: Props) => { { { <> {description ? ( - + {description} ) : ( @@ -312,7 +317,7 @@ export const ProfileItem = (props: Props) => { {expire} ) : ( - + {parseExpire(updated)} )} diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx index 71bb2f5..be78f13 100644 --- a/src/pages/profiles.tsx +++ b/src/pages/profiles.tsx @@ -2,7 +2,15 @@ import useSWR, { mutate } from "swr"; import { useMemo, useRef, useState } from "react"; import { useLockFn } from "ahooks"; import { useSetRecoilState } from "recoil"; -import { Box, Button, Grid, IconButton, Stack, TextField } from "@mui/material"; +import { + Box, + Button, + Grid, + IconButton, + Stack, + TextField, + Divider, +} from "@mui/material"; import { DndContext, closestCenter, @@ -46,6 +54,8 @@ import { ProfileMore } from "@/components/profile/profile-more"; import { useProfiles } from "@/hooks/use-profiles"; import { ConfigViewer } from "@/components/setting/mods/config-viewer"; import { throttle } from "lodash-es"; +import { useRecoilState } from "recoil"; +import { atomThemeMode } from "@/services/states"; const ProfilePage = () => { const { t } = useTranslation(); @@ -235,6 +245,11 @@ const ProfilePage = () => { const text = await navigator.clipboard.readText(); if (text) setUrl(text); }; + const [mode] = useRecoilState(atomThemeMode); + const islight = mode === "light" ? true : false; + const dividercolor = islight + ? "rgba(0, 0, 0, 0.06)" + : "rgba(255, 255, 255, 0.06)"; return ( { loading={loading} variant="contained" size="small" + sx={{ borderRadius: "6px" }} onClick={onImport} > {t("Import")} @@ -330,6 +346,7 @@ const ProfilePage = () => {