Skip to content

Commit

Permalink
♻️Refactor swapHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Jun 10, 2024
1 parent a87c52f commit bf72598
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/Swap/SwapHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ export default function SwapHeader({
chainId,
trade,
active,
showConfig,
}: {
autoSlippage?: number;
chainId?: number;
trade?: boolean;
active?: string;
active?: string;
showConfig: boolean;
}) {
const theme = useTheme();
const fiatOnRampButtonEnabled = true;
Expand All @@ -63,9 +65,12 @@ export default function SwapHeader({
</SwapLink>
)}
</HeaderButtonContainer>
<RowFixed style={{ padding: '6px 12px' }} hidden={true}>
<SettingsTab autoSlippage={0.5} />
</RowFixed>
{showConfig ?
(<RowFixed style={{ padding: '6px 12px' }}>
<SettingsTab autoSlippage={0.5} />
</RowFixed>) :
(false)}

</StyledSwapHeader>
);
}

0 comments on commit bf72598

Please sign in to comment.