Skip to content

Commit

Permalink
fix mobile action button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridel1e committed Oct 30, 2023
1 parent 02379bd commit 4cd4f67
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,21 @@ export const ActionsColumn: FC<ActionsColumnProps> = ({ ammPool }) => {

return (
<Flex>
<Flex.Item marginRight={2}>
<Button
icon={s && <PlusOutlined />}
onClick={(event) => {
event.stopPropagation();
navigate(
`../../swap?base=${ammPool.x.asset.id}&quote=${ammPool.y.asset.id}&initialPoolId=${ammPool.id}`,
);
}}
>
{moreThan('l') && <Trans>Swap</Trans>}
</Button>
</Flex.Item>
{moreThan('m') && (
<Flex.Item marginRight={2}>
<Button
icon={s && <PlusOutlined />}
onClick={(event) => {
event.stopPropagation();
navigate(
`../../swap?base=${ammPool.x.asset.id}&quote=${ammPool.y.asset.id}&initialPoolId=${ammPool.id}`,
);
}}
>
{moreThan('l') && <Trans>Swap</Trans>}
</Button>
</Flex.Item>
)}
<Flex.Item>
<Button
icon={s && <PlusOutlined />}
Expand Down

0 comments on commit 4cd4f67

Please sign in to comment.