chore: update dialog title (#834)

pull/836/head
boojack 2 years ago committed by GitHub
parent 65cc19c12e
commit f6039f2eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,10 +36,7 @@ const ArchivedMemoDialog: React.FC<Props> = (props: Props) => {
return (
<>
<div className="dialog-header-container">
<p className="title-text">
<span className="icon-text">🗂</span>
{t("archived.archived-memos")}
</p>
<p className="title-text">{t("archived.archived-memos")}</p>
<button className="btn close-btn" onClick={destroy}>
<Icon.X className="icon-img" />
</button>

@ -101,10 +101,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
return (
<>
<div className="dialog-header-container">
<p className="title-text">
<span className="icon-text">🚀</span>
{shortcutId ? t("shortcut-list.edit-shortcut") : t("shortcut-list.create-shortcut")}
</p>
<p className="title-text">{shortcutId ? t("shortcut-list.edit-shortcut") : t("shortcut-list.create-shortcut")}</p>
<button className="btn close-btn" onClick={destroy}>
<Icon.X />
</button>

@ -154,10 +154,7 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
return (
<>
<div className="dialog-header-container">
<p className="title-text">
<span className="icon-text">🌄</span>
{t("sidebar.resources")}
</p>
<p className="title-text">{t("sidebar.resources")}</p>
<button className="btn close-btn" onClick={destroy}>
<Icon.X className="icon-img" />
</button>

@ -82,10 +82,7 @@ const ResourcesSelectorDialog: React.FC<Props> = (props: Props) => {
return (
<>
<div className="dialog-header-container">
<p className="title-text">
<span className="icon-text">🌄</span>
{t("sidebar.resources")}
</p>
<p className="title-text">{t("sidebar.resources")}</p>
<button className="btn close-btn" onClick={destroy}>
<Icon.X className="icon-img" />
</button>

@ -124,10 +124,7 @@ const ShareMemoDialog: React.FC<Props> = (props: Props) => {
return (
<>
<div className="dialog-header-container">
<p className="title-text">
<span className="icon-text">🌄</span>
{t("common.share")} Memo
</p>
<p className="title-text">{t("common.share")} Memo</p>
<button className="btn close-btn" onClick={handleCloseBtnClick}>
<Icon.X className="icon-img" />
</button>

@ -83,7 +83,7 @@ const TagList = () => {
{tags.map((t, idx) => (
<TagItemContainer key={t.text + "-" + idx} tag={t} tagQuery={query?.tag} />
))}
{tags.length < 3 && <p className="tip-text">{t("tag-list.tip-text")}</p>}
{tags.length <= 3 && <p className="tip-text">{t("tag-list.tip-text")}</p>}
</div>
</div>
);

@ -54,7 +54,7 @@
}
> .tip-text {
@apply w-full bg-gray-50 dark:bg-zinc-700 mt-2 px-4 py-1 leading-5 rounded text-sm text-gray-400 font-mono;
@apply w-full bg-gray-50 dark:bg-zinc-700 mt-2 px-4 py-1 leading-6 rounded text-sm text-gray-400 font-mono;
}
}
}

@ -141,7 +141,7 @@
"text-placeholder": "Starts with ^ to use regex"
},
"tag-list": {
"tip-text": "Click the '+' button or input `#tag ` to create a new tag."
"tip-text": "Input `#tag` to create"
},
"search": {
"quickly-filter": "Quickly filter"

@ -33,9 +33,20 @@ export const initialGlobalState = async () => {
try {
const { data } = (await api.getSystemStatus()).data;
if (data) {
defaultGlobalState.systemStatus = data;
defaultGlobalState.locale = data.customizedProfile.locale;
defaultGlobalState.appearance = data.customizedProfile.appearance;
const customizedProfile = data.customizedProfile;
defaultGlobalState.systemStatus = {
...data,
customizedProfile: {
name: customizedProfile.name || "memos",
logoUrl: customizedProfile.logoUrl || "/logo.png",
description: customizedProfile.description,
locale: customizedProfile.locale || "en",
appearance: customizedProfile.appearance || "system",
externalUrl: "",
},
};
defaultGlobalState.locale = customizedProfile.locale;
defaultGlobalState.appearance = customizedProfile.appearance;
}
} catch (error) {
// do nth

Loading…
Cancel
Save