Browse Source

Rewrite Trade as `function` component

This allows us to co-locate the `default` export with the component
definition.
debug-collab-settlement
Thomas Eizinger 3 years ago
parent
commit
1fed25ea83
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 9
      taker-frontend/src/components/Trade.tsx

9
taker-frontend/src/components/Trade.tsx

@ -79,8 +79,7 @@ function AlertBox({ title, description }: AlertBoxProps) {
</Alert>); </Alert>);
} }
const Trade = ( export default function Trade({
{
connectedToMaker, connectedToMaker,
minQuantity, minQuantity,
maxQuantity, maxQuantity,
@ -95,8 +94,7 @@ const Trade = (
isLongSubmitting, isLongSubmitting,
orderId, orderId,
walletBalance, walletBalance,
}: TradeProps, }: TradeProps) {
) => {
let outerCircleBg = useColorModeValue("gray.100", "gray.700"); let outerCircleBg = useColorModeValue("gray.100", "gray.700");
let innerCircleBg = useColorModeValue("gray.200", "gray.600"); let innerCircleBg = useColorModeValue("gray.200", "gray.600");
@ -271,8 +269,7 @@ const Trade = (
</Grid> </Grid>
</Center> </Center>
); );
}; }
export default Trade;
interface QuantityProps { interface QuantityProps {
min: number; min: number;

Loading…
Cancel
Save