chore: Rename tooltip.tooltip prop to tooltip.content
This commit is contained in:
@@ -83,7 +83,7 @@ export const OtherAccess = observer(({ document, children }: Props) => {
|
||||
image={<Avatar model={document.createdBy} showBorder={false} />}
|
||||
title={document.createdBy.name}
|
||||
actions={
|
||||
<AccessTooltip tooltip={t("Created the document")}>
|
||||
<AccessTooltip content={t("Created the document")}>
|
||||
{t("Can edit")}
|
||||
</AccessTooltip>
|
||||
}
|
||||
@@ -103,7 +103,7 @@ export const OtherAccess = observer(({ document, children }: Props) => {
|
||||
subtitle={t("Other workspace members may have access")}
|
||||
actions={
|
||||
<AccessTooltip
|
||||
tooltip={t(
|
||||
content={t(
|
||||
"This document may be shared with more workspace members through a parent document or collection you do not have access to"
|
||||
)}
|
||||
/>
|
||||
@@ -117,10 +117,10 @@ export const OtherAccess = observer(({ document, children }: Props) => {
|
||||
|
||||
const AccessTooltip = ({
|
||||
children,
|
||||
tooltip,
|
||||
content,
|
||||
}: {
|
||||
children?: React.ReactNode;
|
||||
tooltip?: string;
|
||||
content?: string;
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -129,7 +129,7 @@ const AccessTooltip = ({
|
||||
<Text type="secondary" size="small">
|
||||
{children}
|
||||
</Text>
|
||||
<Tooltip tooltip={tooltip ?? t("Access inherited from collection")}>
|
||||
<Tooltip content={content ?? t("Access inherited from collection")}>
|
||||
<QuestionMarkIcon size={18} />
|
||||
</Tooltip>
|
||||
</Flex>
|
||||
|
||||
@@ -111,7 +111,7 @@ function PublicAccess({ document, share, sharedParent }: Props) {
|
||||
: share?.url ?? "";
|
||||
|
||||
const copyButton = (
|
||||
<Tooltip tooltip={t("Copy public link")} delay={500} placement="top">
|
||||
<Tooltip content={t("Copy public link")} delay={500} placement="top">
|
||||
<CopyToClipboard text={shareUrl} onCopy={handleCopied}>
|
||||
<NudeButton type="button" disabled={!share} style={{ marginRight: 3 }}>
|
||||
<CopyIcon color={theme.placeholder} size={18} />
|
||||
|
||||
@@ -228,7 +228,7 @@ function SharePopover({
|
||||
) : null
|
||||
) : (
|
||||
<Tooltip
|
||||
tooltip={t("Copy link")}
|
||||
content={t("Copy link")}
|
||||
delay={500}
|
||||
placement="top"
|
||||
key="copy-link"
|
||||
|
||||
Reference in New Issue
Block a user