Skip to content

Commit bcd8a81

Browse files
authored
fix(opentons-ai-client): keep settings button in settings page (#18869)
# Overview Closes 2055 Keep settings button in the settings page when we transition from the landing page. **Before** <img width="1448" alt="image" src="https://github.com/user-attachments/assets/396a7c83-26ba-48d3-9015-a5a38b39e225" /> **After** <img width="1548" alt="image" src="https://github.com/user-attachments/assets/254f0b93-3bc1-4bb0-b6bf-152ec0daacf3" /> ## Test Plan and Hands on Testing CI ## Review requests Confirm Settings icon is there at the settings page ## Risk assessment Low
1 parent 9dac3e1 commit bcd8a81

File tree

1 file changed

+1
-1
lines changed
  • opentrons-ai-client/src/molecules/Header

1 file changed

+1
-1
lines changed

opentrons-ai-client/src/molecules/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function Header({ isExitButton = false }: HeaderProps): JSX.Element {
9999
<LogoutOrExitButton onClick={handleLoginOrExitClick}>
100100
{isExitButton ? t('exit') : t('logout')}
101101
</LogoutOrExitButton>
102-
{location.pathname === '/' && (
102+
{(location.pathname === '/' || location.pathname === '/settings') && (
103103
<Box marginLeft={SPACING.spacing16}>
104104
<SettingsButton onClick={handleSettingsClick} />
105105
</Box>

0 commit comments

Comments
 (0)