From 20e88146d23837c20ba338d9f0ac4bc57a3f9933 Mon Sep 17 00:00:00 2001 From: znaim Date: Thu, 24 Oct 2024 11:51:06 -0400 Subject: [PATCH] added route to updateprotocol and fixed some design issues --- opentrons-ai-client/src/OpentronsAIRoutes.tsx | 3 ++- opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opentrons-ai-client/src/OpentronsAIRoutes.tsx b/opentrons-ai-client/src/OpentronsAIRoutes.tsx index 630429c2aa1..10cbe1d3160 100644 --- a/opentrons-ai-client/src/OpentronsAIRoutes.tsx +++ b/opentrons-ai-client/src/OpentronsAIRoutes.tsx @@ -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' @@ -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', diff --git a/opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx b/opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx index 2c4baa5fd41..98343e65819 100644 --- a/opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx +++ b/opentrons-ai-client/src/organisms/UpdateProtocol/index.tsx @@ -54,6 +54,7 @@ const HeadingText = styled(StyledText).attrs({ })`` const BodyText = styled(StyledText).attrs({ + color: COLORS.grey60, desktopStyle: 'bodyDefaultRegular', paddingBottom: '8px', paddingTop: '16px', @@ -175,11 +176,9 @@ export function UpdateProtocol(): JSX.Element { /> )} - - {t('type_of_update')}