Client: PortalSettings: JavascriptSDK: Fixed description text color

This commit is contained in:
Ilya Oleshko 2024-04-10 14:27:56 +03:00
parent a3cf6520b6
commit 806a635c28
7 changed files with 21 additions and 20 deletions

View File

@ -62,7 +62,7 @@ import {
} from "./StyledPresets";
const DocSpace = (props) => {
const { t, setDocumentTitle } = props;
const { t, setDocumentTitle, theme } = props;
setDocumentTitle(t("JavascriptSdk"));
@ -217,14 +217,14 @@ const DocSpace = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />

View File

@ -69,7 +69,7 @@ import {
} from "./StyledPresets";
const Editor = (props) => {
const { t, setDocumentTitle, getFilePrimaryLink } = props;
const { t, setDocumentTitle, getFilePrimaryLink, theme } = props;
setDocumentTitle(t("JavascriptSdk"));
@ -241,14 +241,14 @@ const Editor = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />

View File

@ -80,7 +80,7 @@ import {
} from "./StyledPresets";
const FileSelector = (props) => {
const { t, setDocumentTitle, fetchExternalLinks } = props;
const { t, setDocumentTitle, fetchExternalLinks, theme } = props;
setDocumentTitle(t("JavascriptSdk"));
@ -412,14 +412,14 @@ const FileSelector = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />

View File

@ -738,14 +738,14 @@ const Manager = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />

View File

@ -69,7 +69,7 @@ import {
} from "./StyledPresets";
const RoomSelector = (props) => {
const { t, setDocumentTitle } = props;
const { t, setDocumentTitle, theme } = props;
setDocumentTitle(t("JavascriptSdk"));
@ -315,14 +315,14 @@ const RoomSelector = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />

View File

@ -84,7 +84,8 @@ import {
} from "./StyledPresets";
const SimpleRoom = (props) => {
const { t, setDocumentTitle, fetchExternalLinks, currentColorScheme } = props;
const { t, setDocumentTitle, fetchExternalLinks, currentColorScheme, theme } =
props;
const navigate = useNavigate();
setDocumentTitle(t("JavascriptSdk"));
@ -332,14 +333,14 @@ const SimpleRoom = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />

View File

@ -71,7 +71,7 @@ import {
} from "./StyledPresets";
const Viewer = (props) => {
const { t, setDocumentTitle, getFilePrimaryLink } = props;
const { t, setDocumentTitle, getFilePrimaryLink, theme } = props;
setDocumentTitle(t("JavascriptSdk"));
@ -244,14 +244,14 @@ const Viewer = (props) => {
<CategorySubHeader className="copy-window-code">
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription")}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={"#A3A9AE"}>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription")}
</Text>
<CodeBlock config={config} />