diff --git a/frontend/src/components/ui/settings/card/card.props.tsx b/frontend/src/components/ui/settings/card/card.props.tsx index 6b752ef..ba45834 100644 --- a/frontend/src/components/ui/settings/card/card.props.tsx +++ b/frontend/src/components/ui/settings/card/card.props.tsx @@ -8,3 +8,4 @@ export type SettingsCardProps = ParentProps & JSX.StylableSVGAttributes & Settin export type SettingsCardHeaderGroupProps = ParentProps & JSX.StylableSVGAttributes; export type SettingsCardHeaderProps = ParentProps & JSX.StylableSVGAttributes; export type SettingsCardDescriptionProps = ParentProps & JSX.StylableSVGAttributes; +export type SettingsCardValueProps = ParentProps & JSX.StylableSVGAttributes; diff --git a/frontend/src/components/ui/settings/card/card.tsx b/frontend/src/components/ui/settings/card/card.tsx index 26b2f71..c814732 100644 --- a/frontend/src/components/ui/settings/card/card.tsx +++ b/frontend/src/components/ui/settings/card/card.tsx @@ -9,6 +9,7 @@ import type { SettingsCardHeaderGroupProps, SettingsCardHeaderProps, SettingsCardProps, + SettingsCardValueProps, } from "./card.props"; import { styles } from "./card.styles"; @@ -36,5 +37,28 @@ export const SettingsCardDescription = ( props: PolymorphicProps, ) => { const [local, others] = splitProps(props, ["class"]); - return ; + return ( + + ); +}; + +export const SettingsCardValue = ( + props: PolymorphicProps, +) => { + const [local, others] = splitProps(props, ["class"]); + return ( + + ); }; diff --git a/frontend/src/components/ui/settings/card/index.tsx b/frontend/src/components/ui/settings/card/index.tsx index 3d3062d..4667486 100644 --- a/frontend/src/components/ui/settings/card/index.tsx +++ b/frontend/src/components/ui/settings/card/index.tsx @@ -1,5 +1,12 @@ import { Icon } from "solid-heroicons"; -import { SettingsCardDescription, SettingsCardHeader, SettingsCardHeaderGroup, SettingsCardRoot } from "./card"; + +import { + SettingsCardDescription, + SettingsCardHeader, + SettingsCardHeaderGroup, + SettingsCardRoot, + SettingsCardValue, +} from "./card"; export * from "./card"; export * from "./card.props"; @@ -10,4 +17,5 @@ export const SettingsCard = Object.assign(SettingsCardRoot, { HeaderGroup: SettingsCardHeaderGroup, Header: SettingsCardHeader, Description: SettingsCardDescription, + Value: SettingsCardValue, }); diff --git a/frontend/src/routes/(sidebar)/(authenticated)/settings/account.tsx b/frontend/src/routes/(sidebar)/(authenticated)/settings/account.tsx index a7d6b86..920d1e7 100644 --- a/frontend/src/routes/(sidebar)/(authenticated)/settings/account.tsx +++ b/frontend/src/routes/(sidebar)/(authenticated)/settings/account.tsx @@ -61,7 +61,7 @@ export default function Account() { {i18n.t.routes.settings.account.sections.security.cards.email.description()} - {user().email} + {user().email} diff --git a/frontend/src/routes/(sidebar)/settings.tsx b/frontend/src/routes/(sidebar)/settings.tsx index 13adaf2..12a0cd1 100644 --- a/frontend/src/routes/(sidebar)/settings.tsx +++ b/frontend/src/routes/(sidebar)/settings.tsx @@ -59,9 +59,9 @@ export default function Settings() { {i18n.t.routes.settings.sections.appearance.cards.theme.description()} - + {i18n.t.routes.settings.sections.appearance.cards.theme.options[theme.theme()]()} - + @@ -97,7 +97,7 @@ export default function Settings() { {i18n.t.routes.settings.sections.about.cards.app.description()} - {import.meta.env.VITE_APP_VERSION} + {import.meta.env.VITE_APP_VERSION}