Settings
This commit is contained in:
@@ -9,6 +9,7 @@ import Heading from "~/components/Heading";
|
||||
import InputSelect from "~/components/InputSelect";
|
||||
import Scene from "~/components/Scene";
|
||||
import Switch from "~/components/Switch";
|
||||
import Text from "~/components/Text";
|
||||
import useCurrentUser from "~/hooks/useCurrentUser";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import useToasts from "~/hooks/useToasts";
|
||||
@@ -55,7 +56,11 @@ function Preferences() {
|
||||
icon={<SettingsIcon color="currentColor" />}
|
||||
>
|
||||
<Heading>{t("Preferences")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Trans>Manage settings that affect your personal experience.</Trans>
|
||||
</Text>
|
||||
|
||||
<Heading as="h2">{t("Display")}</Heading>
|
||||
<SettingRow
|
||||
label={t("Language")}
|
||||
name="language"
|
||||
@@ -102,6 +107,7 @@ function Preferences() {
|
||||
name="codeBlockLineNumbers"
|
||||
label={t("Show line numbers")}
|
||||
description={t("Show line numbers on code blocks in documents.")}
|
||||
border={false}
|
||||
>
|
||||
<Switch
|
||||
id="codeBlockLineNumbers"
|
||||
@@ -110,6 +116,8 @@ function Preferences() {
|
||||
onChange={handlePreferenceChange}
|
||||
/>
|
||||
</SettingRow>
|
||||
|
||||
<Heading as="h2">{t("Behavior")}</Heading>
|
||||
<SettingRow
|
||||
border={false}
|
||||
name="rememberLastPath"
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { observer } from "mobx-react";
|
||||
import { ProfileIcon } from "outline-icons";
|
||||
import * as React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import Button from "~/components/Button";
|
||||
import Heading from "~/components/Heading";
|
||||
import Input from "~/components/Input";
|
||||
import Scene from "~/components/Scene";
|
||||
import Text from "~/components/Text";
|
||||
import useCurrentUser from "~/hooks/useCurrentUser";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import useToasts from "~/hooks/useToasts";
|
||||
@@ -65,6 +66,9 @@ const Profile = () => {
|
||||
return (
|
||||
<Scene title={t("Profile")} icon={<ProfileIcon color="currentColor" />}>
|
||||
<Heading>{t("Profile")}</Heading>
|
||||
<Text type="secondary">
|
||||
<Trans>Manage how you appear to other members of the workspace.</Trans>
|
||||
</Text>
|
||||
|
||||
<form onSubmit={handleSubmit} ref={form}>
|
||||
<SettingRow
|
||||
@@ -80,7 +84,7 @@ const Profile = () => {
|
||||
</SettingRow>
|
||||
<SettingRow
|
||||
border={false}
|
||||
label={t("Full name")}
|
||||
label={t("Name")}
|
||||
name="name"
|
||||
description={t(
|
||||
"This could be your real name, or a nickname — however you’d like people to refer to you."
|
||||
|
||||
Reference in New Issue
Block a user