add link text
This commit is contained in:
1 parent
b64cf3f6b6
commit
b78b584844
3 files changed
+13
-2
No files matched your search
@@ -10,7 +10,7 @@ interface TextLinkProps extends StackProps {
|
||||
text: string;
|
||||
linkText: string;
|
||||
href: string;
|
||||
target?: string;
|
||||
target?: "_self" | "_blank" | "_parent" | "_top";
|
||||
}
|
||||
|
||||
export const TextLink = ({
|
||||
@@ -34,6 +34,7 @@ export const TextLink = ({
|
||||
to={href}
|
||||
component={RouterLink}
|
||||
target={target}
|
||||
{...(target === "_blank" && { rel: "noopener noreferrer" })}
|
||||
>
|
||||
{linkText}
|
||||
</Link>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BasePage, ConfigBox } from "@/Components/v2/design-elements";
|
||||
import { BasePage, ConfigBox, TextLink } from "@/Components/v2/design-elements";
|
||||
import { Autocomplete, Select, Dialog, SwitchComponent } from "@/Components/v2/inputs";
|
||||
import { Stack, useTheme, MenuItem, type SelectChangeEvent } from "@mui/material";
|
||||
import { useEffect } from "react";
|
||||
@@ -518,6 +518,13 @@ export const SettingsPage = () => {
|
||||
title={t("pages.settings.form.email.title")}
|
||||
subtitle={t("pages.settings.form.email.description")}
|
||||
leftContent={
|
||||
<Stack gap={theme.spacing(8)}>
|
||||
<TextLink
|
||||
text={t("pages.settings.form.email.descriptionTransport")}
|
||||
linkText={t("pages.settings.form.email.descriptionTransportLink")}
|
||||
href="https://nodemailer.com/smtp/"
|
||||
target="_top"
|
||||
/>
|
||||
<Box
|
||||
component="pre"
|
||||
sx={{
|
||||
@@ -556,6 +563,7 @@ export const SettingsPage = () => {
|
||||
)}
|
||||
</code>
|
||||
</Box>
|
||||
</Stack>
|
||||
}
|
||||
rightContent={
|
||||
<Stack gap={theme.spacing(10)}>
|
||||
|
||||
@@ -1023,6 +1023,8 @@
|
||||
"email": {
|
||||
"title": "Email settings",
|
||||
"description": "Configure the email settings for your system. This is used to send notifications and alerts.",
|
||||
"descriptionTransport": "This builds an SMTP transport for NodeMailer",
|
||||
"descriptionTransportLink": "See specifications here",
|
||||
"option": {
|
||||
"host": {
|
||||
"label": "Email host - Hostname or IP address to connect to",
|
||||
|
||||
Reference in new issue
Block a user