Skip to content

Commit c1c6553

Browse files
committed
refactor(web): move-WithHelpTooltip-to-components
1 parent 7e0dd17 commit c1c6553

File tree

8 files changed

+19
-20
lines changed

8 files changed

+19
-20
lines changed

web/src/components/CasesDisplay/CasesListHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import styled, { css } from "styled-components";
33
import { landscapeStyle } from "styles/landscapeStyle";
4-
import WithHelpTooltip from "pages/Dashboard/WithHelpTooltip";
4+
import WithHelpTooltip from "components/WithHelpTooltip";
55

66
const Container = styled.div`
77
display: flex;

web/src/pages/Dashboard/JurorInfo/Coherency.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import styled, { css } from "styled-components";
33
import { landscapeStyle } from "styles/landscapeStyle";
44
import { CircularProgress } from "@kleros/ui-components-library";
5-
import WithHelpTooltip from "../WithHelpTooltip";
5+
import WithHelpTooltip from "components/WithHelpTooltip";
66

77
const Container = styled.div`
88
display: flex;

web/src/pages/Dashboard/JurorInfo/JurorRewards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import styled from "styled-components";
33
import { useAccount } from "wagmi";
44
import TokenRewards from "./TokenRewards";
5-
import WithHelpTooltip from "../WithHelpTooltip";
5+
import WithHelpTooltip from "components/WithHelpTooltip";
66
import { getFormattedRewards } from "utils/jurorRewardConfig";
77
import { CoinIds } from "consts/coingecko";
88
import { useUserQuery } from "queries/useUser";

web/src/pages/Dashboard/JurorInfo/StakingRewards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import styled from "styled-components";
33
import { Box as _Box, Button } from "@kleros/ui-components-library";
44
import TokenRewards from "./TokenRewards";
5-
import WithHelpTooltip from "../WithHelpTooltip";
5+
import WithHelpTooltip from "components/WithHelpTooltip";
66
import { EnsureChain } from "components/EnsureChain";
77

88
const Container = styled.div`

web/src/pages/Home/TopJurors/Header/Coherency.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import styled, { css } from "styled-components";
33
import { BREAKPOINT_LANDSCAPE, landscapeStyle } from "styles/landscapeStyle";
44
import { useWindowSize } from "react-use";
5-
import WithHelpTooltip from "pages/Dashboard/WithHelpTooltip";
5+
import WithHelpTooltip from "components/WithHelpTooltip";
66

77
const Container = styled.div`
88
display: flex;

web/src/pages/Home/TopJurors/Header/MobileHeader.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ import HowItWorks from "components/HowItWorks";
66
import JurorLevels from "components/Popup/MiniGuides/JurorLevels";
77

88
const Container = styled.div`
9-
display: flex;
10-
justify-content: space-between;
11-
width: 100%;
12-
background-color: ${({ theme }) => theme.lightBlue};
13-
padding: 24px;
14-
border 1px solid ${({ theme }) => theme.stroke};
15-
border-top-left-radius: 3px;
16-
border-top-right-radius: 3px;
17-
border-bottom: none;
18-
flex-wrap: wrap;
19-
${landscapeStyle(
20-
() =>
21-
css`
9+
display: flex;
10+
justify-content: space-between;
11+
width: 100%;
12+
background-color: ${({ theme }) => theme.lightBlue};
13+
padding: 24px;
14+
border 1px solid ${({ theme }) => theme.stroke};
15+
border-top-left-radius: 3px;
16+
border-top-right-radius: 3px;
17+
border-bottom: none;
18+
flex-wrap: wrap;
19+
${landscapeStyle(
20+
() => css`
2221
display: none;
2322
`
24-
)}
23+
)}
2524
`;
2625

2726
const StyledLabel = styled.label`

web/src/pages/Home/TopJurors/Header/Rewards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import styled, { css } from "styled-components";
33
import { landscapeStyle } from "styles/landscapeStyle";
4-
import WithHelpTooltip from "pages/Dashboard/WithHelpTooltip";
4+
import WithHelpTooltip from "components/WithHelpTooltip";
55

66
const Container = styled.div`
77
display: flex;

0 commit comments

Comments
 (0)