Skip to content

Commit

Permalink
rename the component to align with the design
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Dec 17, 2024
1 parent 280a0a2 commit 48104c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions protocol-designer/src/ProtocolRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
GateModal,
Kitchen,
LabwareUploadModal,
NavigationBar,
Navigation,

Check failure on line 17 in protocol-designer/src/ProtocolRoutes.tsx

View workflow job for this annotation

GitHub Actions / js checks

Module '"./organisms"' has no exported member 'Navigation'.

Check failure on line 17 in protocol-designer/src/ProtocolRoutes.tsx

View workflow job for this annotation

GitHub Actions / js checks

Module '"./organisms"' has no exported member 'Navigation'.
} from './organisms'
import { ProtocolDesignerAppFallback } from './resources/ProtocolDesignerAppFallback'

Expand Down Expand Up @@ -74,7 +74,7 @@ export function ProtocolRoutes(): JSX.Element {
FallbackComponent={ProtocolDesignerAppFallback}
onReset={handleReset}
>
<NavigationBar />
<Navigation />
<Kitchen>
<Box width="100%">
{showGateModal ? <GateModal /> : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { renderWithProviders } from '../../../__testing-utils__'
import { getHasUnsavedChanges } from '../../../load-file/selectors'
import { toggleNewProtocolModal } from '../../../navigation/actions'
import { SettingsIcon } from '../../SettingsIcon'
import { NavigationBar } from '..'
import { Navigation } from '..'

vi.mock('../../SettingsIcon')
vi.mock('../../../navigation/actions')
Expand All @@ -16,13 +16,13 @@ vi.mock('../../../load-file/selectors')
const render = () => {
return renderWithProviders(
<MemoryRouter>
<NavigationBar />
<Navigation />
</MemoryRouter>,
{ i18nInstance: i18n }
)
}

describe('NavigationBar', () => {
describe('Navigation', () => {
beforeEach(() => {
vi.mocked(getHasUnsavedChanges).mockReturnValue(false)
vi.mocked(SettingsIcon).mockReturnValue(<div>mock SettingsIcon</div>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getHasUnsavedChanges } from '../../load-file/selectors'
import { SettingsIcon } from '../SettingsIcon'
import type { ThunkDispatch } from '../../types'

export function NavigationBar(): JSX.Element | null {
export function Navigation(): JSX.Element | null {
const { t } = useTranslation(['shared', 'alert'])
const location = useLocation()
const navigate = useNavigate()
Expand Down

0 comments on commit 48104c0

Please sign in to comment.