Skip to content

Commit 7b049e2

Browse files
authored
Update setup studio status icon (#4515)
* Update setup studio status icon * Use warning icon
1 parent d58ddb7 commit 7b049e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webview/src/setup/components/App.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,15 +689,15 @@ describe('App', () => {
689689
).toBeInTheDocument()
690690
})
691691

692-
it('should show an info icon if dvc is compatible but studio is not connected', () => {
692+
it('should show an warning icon if dvc is compatible but studio is not connected', () => {
693693
renderApp()
694694

695695
const iconWrapper = within(
696696
screen.getByTestId('studio-section-details')
697697
).getByTestId('info-tooltip-toggle')
698698

699699
expect(
700-
within(iconWrapper).getByTestId(TooltipIconType.INFO)
700+
within(iconWrapper).getByTestId(TooltipIconType.WARNING)
701701
).toBeInTheDocument()
702702
})
703703
})

webview/src/setup/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const getStudioStatusIcon = (cliCompatible: boolean, isConnected: boolean) => {
5555
return TooltipIconType.ERROR
5656
}
5757

58-
return isConnected ? TooltipIconType.PASSED : TooltipIconType.INFO
58+
return isConnected ? TooltipIconType.PASSED : TooltipIconType.WARNING
5959
}
6060

6161
export const feedStore = (

0 commit comments

Comments
 (0)