chore: Rename tooltip.tooltip prop to tooltip.content

This commit is contained in:
Tom Moor
2024-02-03 16:22:51 -05:00
parent 0726445135
commit c3b515f0e1
32 changed files with 55 additions and 52 deletions

View File

@@ -76,7 +76,7 @@ function AppSidebar() {
}
>
<Tooltip
tooltip={t("Toggle sidebar")}
content={t("Toggle sidebar")}
shortcut={`${metaDisplay}+.`}
delay={500}
>

View File

@@ -43,7 +43,7 @@ function SettingsSidebar() {
onClick={returnToApp}
>
<Tooltip
tooltip={t("Toggle sidebar")}
content={t("Toggle sidebar")}
shortcut={`${metaDisplay}+.`}
delay={500}
>

View File

@@ -162,7 +162,7 @@ const CollectionLink: React.FC<Props> = ({
!isDraggingAnyCollection && (
<Fade>
<NudeButton
tooltip={{ tooltip: t("New doc"), delay: 500 }}
tooltip={{ content: t("New doc"), delay: 500 }}
action={createDocument}
context={context}
hideOnActionDisabled

View File

@@ -354,7 +354,7 @@ function InnerDocumentLink(
!isDraggingAnyDocument ? (
<Fade>
{can.createChildDocument && (
<Tooltip tooltip={t("New doc")} delay={500}>
<Tooltip content={t("New doc")} delay={500}>
<NudeButton
type={undefined}
aria-label={t("New nested document")}

View File

@@ -43,12 +43,12 @@ function HistoryNavigation(props: React.ComponentProps<typeof Flex>) {
return (
<Navigation gap={4} {...props}>
<Tooltip tooltip={t("Go back")} delay={500}>
<Tooltip content={t("Go back")} delay={500}>
<NudeButton onClick={() => Desktop.bridge.goBack()}>
<Back $active={back} />
</NudeButton>
</Tooltip>
<Tooltip tooltip={t("Go forward")} delay={500}>
<Tooltip content={t("Go forward")} delay={500}>
<NudeButton onClick={() => Desktop.bridge.goForward()}>
<Forward $active={forward} />
</NudeButton>