chore: Improve clarity of 'Shared links' page in settings
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
CodeIcon,
|
||||
UserIcon,
|
||||
GroupIcon,
|
||||
LinkIcon,
|
||||
GlobeIcon,
|
||||
TeamIcon,
|
||||
BeakerIcon,
|
||||
BuildingBlocksIcon,
|
||||
@@ -148,7 +148,7 @@ const useSettingsConfig = () => {
|
||||
component: Shares,
|
||||
enabled: true,
|
||||
group: t("Workspace"),
|
||||
icon: LinkIcon,
|
||||
icon: GlobeIcon,
|
||||
},
|
||||
{
|
||||
name: t("Import"),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import sortBy from "lodash/sortBy";
|
||||
import { observer } from "mobx-react";
|
||||
import { LinkIcon, WarningIcon } from "outline-icons";
|
||||
import { GlobeIcon, WarningIcon } from "outline-icons";
|
||||
import * as React from "react";
|
||||
import { useTranslation, Trans } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
@@ -68,7 +68,7 @@ function Shares() {
|
||||
}, [shares.orderedData, shareIds]);
|
||||
|
||||
return (
|
||||
<Scene title={t("Shared Links")} icon={<LinkIcon />} wide>
|
||||
<Scene title={t("Shared Links")} icon={<GlobeIcon />} wide>
|
||||
<Heading>{t("Shared Links")}</Heading>
|
||||
|
||||
{can.update && !canShareDocuments && (
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { observer } from "mobx-react";
|
||||
import { CheckmarkIcon } from "outline-icons";
|
||||
import * as React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useTheme } from "styled-components";
|
||||
@@ -8,7 +7,6 @@ import Avatar from "~/components/Avatar";
|
||||
import Flex from "~/components/Flex";
|
||||
import TableFromParams from "~/components/TableFromParams";
|
||||
import Time from "~/components/Time";
|
||||
import Tooltip from "~/components/Tooltip";
|
||||
import ShareMenu from "~/menus/ShareMenu";
|
||||
|
||||
type Props = Omit<React.ComponentProps<typeof TableFromParams>, "columns"> & {
|
||||
@@ -63,20 +61,6 @@ function SharesTable({ canManage, data, ...rest }: Props) {
|
||||
value ? <Time dateTime={value} addSuffix /> : null
|
||||
),
|
||||
},
|
||||
{
|
||||
id: "includeChildDocuments",
|
||||
Header: t("Shared nested"),
|
||||
accessor: "includeChildDocuments",
|
||||
Cell: observer(({ value }: { value: string }) =>
|
||||
value ? (
|
||||
<Flex align="center">
|
||||
<Tooltip content={t("Nested documents are publicly available")}>
|
||||
<CheckmarkIcon color={theme.accent} />
|
||||
</Tooltip>
|
||||
</Flex>
|
||||
) : null
|
||||
),
|
||||
},
|
||||
hasDomain
|
||||
? {
|
||||
id: "domain",
|
||||
|
||||
@@ -794,8 +794,6 @@
|
||||
"Last accessed": "Last accessed",
|
||||
"Shared by": "Shared by",
|
||||
"Date shared": "Date shared",
|
||||
"Shared nested": "Shared nested",
|
||||
"Nested documents are publicly available": "Nested documents are publicly available",
|
||||
"Domain": "Domain",
|
||||
"Views": "Views",
|
||||
"Everyone": "Everyone",
|
||||
|
||||
Reference in New Issue
Block a user