From 4adff5ad5cefa004037416a1bba1ce8eabec50ed Mon Sep 17 00:00:00 2001 From: Alexander Belokon Date: Tue, 2 Apr 2024 00:26:16 +0200 Subject: [PATCH] fix: stonks related issues found by qa --- .../stonks/ui/StonksGrid/StonksGridStyle.ts | 5 +++++ .../StonksOrderProgressSafe.tsx | 5 ++--- .../StonksOrderResolverForm.tsx | 18 +++++++++++++++++- pages/stonks/orders/[orderAddress].tsx | 2 +- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/modules/stonks/ui/StonksGrid/StonksGridStyle.ts b/modules/stonks/ui/StonksGrid/StonksGridStyle.ts index 3c2e9c56..bd197cf5 100644 --- a/modules/stonks/ui/StonksGrid/StonksGridStyle.ts +++ b/modules/stonks/ui/StonksGrid/StonksGridStyle.ts @@ -1,3 +1,4 @@ +import { BREAKPOINT_MOBILE } from 'modules/globalStyles' import { Text } from 'modules/shared/ui/Common/Text' import styled from 'styled-components' @@ -5,6 +6,10 @@ export const Grid = styled.div` display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; + + @media (max-width: ${BREAKPOINT_MOBILE}) { + grid-template-columns: 1fr; + } ` export const Card = styled.div` diff --git a/modules/stonks/ui/StonksOrderProgress/StonksOrderProgressSafe.tsx b/modules/stonks/ui/StonksOrderProgress/StonksOrderProgressSafe.tsx index 63fd1b50..5f59f5bf 100644 --- a/modules/stonks/ui/StonksOrderProgress/StonksOrderProgressSafe.tsx +++ b/modules/stonks/ui/StonksOrderProgress/StonksOrderProgressSafe.tsx @@ -27,9 +27,8 @@ export function StonksOrderProgressSafe({ safeTxHash }: Props) { - Once the transaction is signed and transaction has is obtained, you - can proceed with the order. Click the button below to open up the - order form. + Once the transaction has been signed and executed, return to the + Stonks page and enter the tx hash to continue order creation. diff --git a/pages/stonks/orders/[orderAddress].tsx b/pages/stonks/orders/[orderAddress].tsx index ab1957da..6878d597 100644 --- a/pages/stonks/orders/[orderAddress].tsx +++ b/pages/stonks/orders/[orderAddress].tsx @@ -49,7 +49,7 @@ export default function StonksOrderDetailsPage() { mutate(undefined, { revalidate: true })} /> )