Skip to content

Commit

Permalink
added route to updateprotocol and fixed some design issues
Browse files Browse the repository at this point in the history
  • Loading branch information
connected-znaim committed Oct 24, 2024
1 parent 5d1ff6c commit 20e8814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion opentrons-ai-client/src/OpentronsAIRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Route, Navigate, Routes } from 'react-router-dom'
import { Landing } from './pages/Landing'
import { UpdateProtocol } from './organisms/UpdateProtocol'

import type { RouteProps } from './resources/types'

Expand All @@ -12,7 +13,7 @@ const opentronsAIRoutes: RouteProps[] = [
path: '/new-protocol',
},
{
Component: Landing,
Component: UpdateProtocol,
name: 'Update An Existing Protocol',
navLinkTo: '/update-protocol',
path: '/update-protocol',
Expand Down
5 changes: 2 additions & 3 deletions opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const HeadingText = styled(StyledText).attrs({
})``

const BodyText = styled(StyledText).attrs({
color: COLORS.grey60,
desktopStyle: 'bodyDefaultRegular',
paddingBottom: '8px',
paddingTop: '16px',
Expand Down Expand Up @@ -175,11 +176,9 @@ export function UpdateProtocol(): JSX.Element {
/>
)}
</Flex>

<BodyText>{t('type_of_update')}</BodyText>
<Flex flexDirection={DIRECTION_COLUMN} width="100%">
<DropdownMenu
// value={updateType}
title={t('type_of_update')}
width="100%"
dropdownType="neutral"
filterOptions={updateOptions}
Expand Down

0 comments on commit 20e8814

Please sign in to comment.