chore: Improve clarity of 'Shared links' page in settings
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user