Skip to content

Commit d2af22a

Browse files
committed
reword open in editor to diff preview
1 parent 703eede commit d2af22a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/LiteEditor/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ const LiteEditorToolbar = ({
159159
}) => {
160160
const appTheme = useTheme()
161161
const Icon = diffEditor ? SquareSplitHorizontalIcon : CornersOutIcon
162+
const label = diffEditor ? "Diff preview" : "Open in editor"
162163
return (
163164
<ButtonsContainer>
164165
<OpenInEditorButton
@@ -169,10 +170,10 @@ const LiteEditorToolbar = ({
169170
})
170171
onOpenInEditor()
171172
}}
172-
title="Open in editor"
173+
title={label}
173174
data-hook="ai-open-in-editor-button"
174175
>
175-
{!compact && "Open in editor"}
176+
{!compact && label}
176177
<Icon size="1.8rem" color={appTheme.color.offWhite} />
177178
</OpenInEditorButton>
178179
{!compact && (

0 commit comments

Comments
 (0)