Skip to content

Commit ba84316

Browse files
author
Theodore Li
committed
Fix incorrect tool tip on file edit button
1 parent 06833ef commit ba84316

File tree

1 file changed

+7
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs

1 file changed

+7
-1
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs/resource-tabs.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ const PREVIEW_MODE_ICONS = {
4141
preview: Pencil,
4242
} satisfies Record<PreviewMode, (props: ComponentProps<typeof Eye>) => ReactNode>
4343

44+
const PREVIEW_MODE_LABELS: Record<PreviewMode, string> = {
45+
editor: 'Split Mode',
46+
split: 'Preview Mode',
47+
preview: 'Edit Mode',
48+
}
49+
4450
/**
4551
* Builds a `type:id` -> current name lookup from live query data so resource
4652
* tabs always reflect the latest name even after a rename.
@@ -399,7 +405,7 @@ export function ResourceTabs({
399405
</Button>
400406
</Tooltip.Trigger>
401407
<Tooltip.Content side='bottom'>
402-
<p>Preview mode</p>
408+
<p>{PREVIEW_MODE_LABELS[previewMode]}</p>
403409
</Tooltip.Content>
404410
</Tooltip.Root>
405411
)}

0 commit comments

Comments
 (0)