Skip to content

Commit eca5252

Browse files
committed
do not show settings button when in embedded mode
1 parent 8b1d15d commit eca5252

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/client/components/ChatV2/ChatBox.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,21 @@ export const ChatBox = ({
260260
</Tooltip>
261261
</Box>
262262

263-
<Tooltip
264-
arrow
265-
placement="top"
266-
title={
267-
<Typography variant="body2" sx={{ p: 1 }}>
268-
{t('chat:settings')}
269-
</Typography>
270-
}
271-
>
272-
<OutlineButtonBlack sx={{ display: { xs: 'block', lg: 'none' } }} onClick={() => setChatLeftSidePanelOpen(true)} id="left-panel-open">
273-
<SettingsIcon sx={{ color: 'rgba(0, 0, 0, 0.7)' }} />
274-
</OutlineButtonBlack>
275-
</Tooltip>
263+
{!isEmbedded && (
264+
<Tooltip
265+
arrow
266+
placement="top"
267+
title={
268+
<Typography variant="body2" sx={{ p: 1 }}>
269+
{t('chat:settings')}
270+
</Typography>
271+
}
272+
>
273+
<OutlineButtonBlack sx={{ display: { xs: 'block', lg: 'none' } }} onClick={() => setChatLeftSidePanelOpen(true)} id="left-panel-open">
274+
<SettingsIcon sx={{ color: 'rgba(0, 0, 0, 0.7)' }} />
275+
</OutlineButtonBlack>
276+
</Tooltip>
277+
)}
276278
</Box>
277279
</Box>
278280
</Box>

0 commit comments

Comments
 (0)