Skip to content

Commit

Permalink
Add border and allow deadline editing
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall2112 committed Nov 22, 2024
1 parent 41b0e7a commit 5c643a9
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export const TradeWidget = () => {
asset: 'TEMPLE',
amount: '100',
},
forcedOrderDeadline: {
swap: 2,
},
enabledTradeTypes: [TradeType.SWAP],
theme: {
baseTheme: 'dark',
Expand Down Expand Up @@ -73,23 +70,25 @@ export const TradeWidget = () => {
};

return (
<WidgetContainer>
<>
{!ethersProvider && <Loader />}
{ethersProvider && (
<CowSwapWidget
params={params}
provider={ethersProvider.provider as unknown as EthereumProvider}
/>
<WidgetContainer>
<CowSwapWidget
params={params}
provider={ethersProvider.provider as unknown as EthereumProvider}
/>
</WidgetContainer>
)}
</WidgetContainer>
</>
);
};

const WidgetContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
border: 0.0625rem solid rgb(189, 123, 79);
border-radius: 10px;
height: 100%;
width: 500px;
`;

0 comments on commit 5c643a9

Please sign in to comment.