Skip to content

Commit

Permalink
fix: Exchange tab named replaced by Swap.
Browse files Browse the repository at this point in the history
fix: Tab font size reduced

adjust margins for cards

chore: rm comments

fix: target account

fix: spacing
  • Loading branch information
liviuciulinaru committed Jul 16, 2024
1 parent 53ff78c commit 26c42cd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import {
SwapDataType,
SwapSelectorStateType,
SwapTransactionType,
} from "@ledgerhq/live-common/exchange/swap/types";
import React from "react";
import styled from "styled-components";
import { track } from "~/renderer/analytics/segment";
import Box from "~/renderer/components/Box";
import Button from "~/renderer/components/Button";
import ArrowsUpDown from "~/renderer/icons/ArrowsUpDown";
import styled from "styled-components";
import { track } from "~/renderer/analytics/segment";
import { useGetSwapTrackingProperties } from "../../utils/index";
import FromRow from "./FromRow";
import ToRow from "./ToRow";
import {
SwapSelectorStateType,
SwapTransactionType,
SwapDataType,
} from "@ledgerhq/live-common/exchange/swap/types";
import { useGetSwapTrackingProperties } from "../../utils/index";

type FormInputsProps = {
fromAccount: SwapSelectorStateType["account"];
Expand Down Expand Up @@ -49,10 +49,7 @@ const Main = styled.section`
display: flex;
flex-direction: column;
margin-bottom: 5px;
row-gap: 5px;
@media screen and (min-height: 800px) {
row-gap: 12px;
}
row-gap: 12px;
`;

function SwapButton({ onClick, disabled }: SwapButtonProps): JSX.Element {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const Container = styled.div`
column-gap: 0.375rem;
align-items: center;
color: ${p => p.theme.colors.palette.text.shade100};
justify-content: flex-end;
`;
export const Text = styled(TextBase).attrs(() => ({
ff: "Inter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
useSwapTransaction,
} from "@ledgerhq/live-common/exchange/swap/hooks/index";
import {
maybeKeepTronAccountAlive,
maybeTezosAccountUnrevealedAccount,
maybeTronEmptyAccount,
maybeKeepTronAccountAlive,
} from "@ledgerhq/live-common/exchange/swap/index";
import { OnNoRatesCallback } from "@ledgerhq/live-common/exchange/swap/types";
import { getProviderName } from "@ledgerhq/live-common/exchange/swap/utils/index";
Expand Down Expand Up @@ -52,12 +52,11 @@ const Wrapper = styled.div`
display: flex;
flex-direction: column;
max-width: 37rem;
padding: 12px 20px 0;
row-gap: 0.75rem;
@media screen and (min-height: 800px) {
row-gap: 2rem;
margin-top: 12px;
padding: 20px;
padding: 0.75rem ${({ theme }) => theme.space[4]}px 0;
row-gap: 1rem;
@media screen and (min-height: 1200px) {
padding-top: 1rem;
row-gap: 1.5rem;
}
`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useMemo } from "react";
import { useLocation, useHistory } from "react-router-dom";
import { track } from "~/renderer/analytics/segment";
import TabBar, { TabBarRootStyled } from "~/renderer/components/TabBar";
import { useTranslation } from "react-i18next";
import { useHistory, useLocation } from "react-router-dom";
import styled from "styled-components";
import { track } from "~/renderer/analytics/segment";
import TabBar, { TabBarRootStyled } from "~/renderer/components/TabBar";
import { useGetSwapTrackingProperties } from "~/renderer/screens/exchange/Swap2/utils";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down Expand Up @@ -55,7 +55,7 @@ const Navbar = () => {

return (
<Nav>
<TabBar tabs={tabs} onIndexChange={onWrappedTabChange} index={currentIndex} />
<TabBar tabs={tabs} onIndexChange={onWrappedTabChange} index={currentIndex} fontSize={14} />
</Nav>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"path": "/swap",
"title": "swap2.tabs.exchange",
"name": "Exchange",
"name": "Swap",
"disabled": false
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/static/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"swap2": {
"title": "Swap",
"tabs": {
"exchange": "Exchange",
"exchange": "Swap",
"history": "History"
},
"form": {
Expand Down

0 comments on commit 26c42cd

Please sign in to comment.