@@ -3,7 +3,7 @@ import React from 'react'
33import { ExplorerDataType , getExplorerLink } from '@cowprotocol/common-utils'
44import { SupportedChainId } from '@cowprotocol/cow-sdk'
55import { Command } from '@cowprotocol/types'
6- import { Media } from '@cowprotocol/ui'
6+ import { Icon , Media , UI } from '@cowprotocol/ui'
77import { TruncatedText } from '@cowprotocol/ui/pure/TruncatedText'
88
99import { faFill , faGroupArrowsRotate , faHistory , faProjectDiagram } from '@fortawesome/free-solid-svg-icons'
@@ -31,6 +31,7 @@ import { Order } from 'api/operator'
3131import { getUiOrderType } from 'utils/getUiOrderType'
3232
3333import { OrderHooksDetails } from '../OrderHooksDetails'
34+ import { UnsignedOrderWarning } from '../UnsignedOrderWarning'
3435
3536const tooltip = {
3637 orderID : 'A unique identifier ID for this order.' ,
@@ -87,6 +88,8 @@ const tooltip = {
8788}
8889
8990export const Wrapper = styled . div `
91+ --cow-color-alert: ${ ( { theme } ) : string => theme . alert2 } ;
92+
9093 display: flex;
9194 flex-direction: row;
9295
@@ -126,6 +129,10 @@ export const LinkButton = styled(LinkWithPrefixNetwork)`
126129 }
127130`
128131
132+ const WarningRow = styled . tr `
133+ background-color: ${ ( { theme } ) : string => theme . background } ;
134+ `
135+
129136export type Props = {
130137 chainId : SupportedChainId
131138 order : Order
@@ -167,12 +174,20 @@ export function DetailsTable(props: Props): React.ReactNode | null {
167174 }
168175
169176 const onCopy = ( label : string ) : void => clickOnOrderDetails ( 'Copy' , label )
177+ const isSigning = status === 'signing'
170178
171179 return (
172180 < SimpleTable
173181 columnViewMobile
174182 body = {
175183 < >
184+ { isSigning && (
185+ < WarningRow >
186+ < td colSpan = { 2 } >
187+ < UnsignedOrderWarning />
188+ </ td >
189+ </ WarningRow >
190+ ) }
176191 < tr >
177192 < td >
178193 < span >
@@ -195,6 +210,12 @@ export function DetailsTable(props: Props): React.ReactNode | null {
195210 </ td >
196211 < td >
197212 < Wrapper >
213+ { isSigning && (
214+ < >
215+ < Icon image = "ALERT" color = { UI . COLOR_ALERT } />
216+
217+ </ >
218+ ) }
198219 < RowWithCopyButton
199220 textToCopy = { owner }
200221 onCopy = { ( ) : void => onCopy ( 'ownerAddress' ) }
0 commit comments