Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
6a29dacd
Unverified
Commit
6a29dacd
authored
Aug 18, 2022
by
lynn
Committed by
GitHub
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix explore and pools titles to match designs. (#4399)
init
parent
9ddad80f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
+18
-10
PositionPage.tsx
src/pages/Pool/PositionPage.tsx
+1
-1
index.tsx
src/pages/Pool/index.tsx
+6
-6
index.tsx
src/pages/Tokens/index.tsx
+8
-3
index.tsx
src/theme/index.tsx
+3
-0
No files found.
src/pages/Pool/PositionPage.tsx
View file @
6a29dacd
...
@@ -594,7 +594,7 @@ export function PositionPage() {
...
@@ -594,7 +594,7 @@ export function PositionPage() {
to=
"/pool"
to=
"/pool"
>
>
<
HoverText
>
<
HoverText
>
<
Trans
>
← Back to Pools
Overview
</
Trans
>
<
Trans
>
← Back to Pools
</
Trans
>
</
HoverText
>
</
HoverText
>
</
Link
>
</
Link
>
<
ResponsiveRow
>
<
ResponsiveRow
>
...
...
src/pages/Pool/index.tsx
View file @
6a29dacd
...
@@ -159,9 +159,9 @@ function WrongNetworkCard() {
...
@@ -159,9 +159,9 @@ function WrongNetworkCard() {
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
AutoColumn
gap=
"lg"
style=
{
{
width
:
'
100%
'
}
}
>
<
AutoColumn
gap=
"lg"
style=
{
{
width
:
'
100%
'
}
}
>
<
TitleRow
style=
{
{
marginTop
:
'
1rem
'
}
}
padding=
{
'
0
'
}
>
<
TitleRow
style=
{
{
marginTop
:
'
1rem
'
}
}
padding=
{
'
0
'
}
>
<
ThemedText
.
DeprecatedBody
fontSize=
{
'
20px
'
}
>
<
ThemedText
.
LargeHeader
>
<
Trans
>
Pools
Overview
</
Trans
>
<
Trans
>
Pools
</
Trans
>
</
ThemedText
.
DeprecatedBody
>
</
ThemedText
.
LargeHeader
>
</
TitleRow
>
</
TitleRow
>
<
MainContentWrapper
>
<
MainContentWrapper
>
...
@@ -257,9 +257,9 @@ export default function Pool() {
...
@@ -257,9 +257,9 @@ export default function Pool() {
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
AutoColumn
gap=
"lg"
justify=
"center"
>
<
AutoColumn
gap=
"lg"
style=
{
{
width
:
'
100%
'
}
}
>
<
AutoColumn
gap=
"lg"
style=
{
{
width
:
'
100%
'
}
}
>
<
TitleRow
style=
{
{
marginTop
:
'
1rem
'
}
}
padding=
{
'
0
'
}
>
<
TitleRow
style=
{
{
marginTop
:
'
1rem
'
}
}
padding=
{
'
0
'
}
>
<
ThemedText
.
DeprecatedBody
fontSize=
{
'
20px
'
}
>
<
ThemedText
.
LargeHeader
>
<
Trans
>
Pools
Overview
</
Trans
>
<
Trans
>
Pools
</
Trans
>
</
ThemedText
.
DeprecatedBody
>
</
ThemedText
.
LargeHeader
>
<
ButtonRow
>
<
ButtonRow
>
{
showV2Features
&&
(
{
showV2Features
&&
(
<
Menu
<
Menu
...
...
src/pages/Tokens/index.tsx
View file @
6a29dacd
import
{
Trans
}
from
'
@lingui/macro
'
import
{
PageName
}
from
'
components/AmplitudeAnalytics/constants
'
import
{
PageName
}
from
'
components/AmplitudeAnalytics/constants
'
import
{
Trace
}
from
'
components/AmplitudeAnalytics/Trace
'
import
{
Trace
}
from
'
components/AmplitudeAnalytics/Trace
'
import
{
MAX_WIDTH_MEDIA_BREAKPOINT
,
MEDIUM_MEDIA_BREAKPOINT
}
from
'
components/Tokens/constants
'
import
{
MAX_WIDTH_MEDIA_BREAKPOINT
,
MEDIUM_MEDIA_BREAKPOINT
}
from
'
components/Tokens/constants
'
...
@@ -12,6 +13,7 @@ import { useAtomValue, useResetAtom } from 'jotai/utils'
...
@@ -12,6 +13,7 @@ import { useAtomValue, useResetAtom } from 'jotai/utils'
import
{
useEffect
}
from
'
react
'
import
{
useEffect
}
from
'
react
'
import
{
useLocation
}
from
'
react-router-dom
'
import
{
useLocation
}
from
'
react-router-dom
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
import
{
ThemedText
}
from
'
theme
'
const
ExploreContainer
=
styled
.
div
`
const
ExploreContainer
=
styled
.
div
`
width: 100%;
width: 100%;
...
@@ -21,8 +23,7 @@ const ExploreContainer = styled.div`
...
@@ -21,8 +23,7 @@ const ExploreContainer = styled.div`
const
TokenTableContainer
=
styled
.
div
`
const
TokenTableContainer
=
styled
.
div
`
padding: 16px 0px;
padding: 16px 0px;
`
`
const
TitleContainer
=
styled
.
div
`
export
const
TitleContainer
=
styled
.
div
`
font-size: 32px;
margin-bottom: 16px;
margin-bottom: 16px;
max-width: 960px;
max-width: 960px;
margin-left: auto;
margin-left: auto;
...
@@ -70,7 +71,11 @@ const Tokens = () => {
...
@@ -70,7 +71,11 @@ const Tokens = () => {
return
(
return
(
<
Trace
page=
{
PageName
.
TOKENS_PAGE
}
shouldLogImpression
>
<
Trace
page=
{
PageName
.
TOKENS_PAGE
}
shouldLogImpression
>
<
ExploreContainer
>
<
ExploreContainer
>
<
TitleContainer
>
Explore Tokens
</
TitleContainer
>
<
TitleContainer
>
<
ThemedText
.
LargeHeader
>
<
Trans
>
Explore Tokens
</
Trans
>
</
ThemedText
.
LargeHeader
>
</
TitleContainer
>
<
FiltersWrapper
>
<
FiltersWrapper
>
<
FiltersContainer
>
<
FiltersContainer
>
<
NetworkFilter
/>
<
NetworkFilter
/>
...
...
src/theme/index.tsx
View file @
6a29dacd
...
@@ -320,6 +320,9 @@ export const ThemedText = {
...
@@ -320,6 +320,9 @@ export const ThemedText = {
DeprecatedLargeHeader
(
props
:
TextProps
)
{
DeprecatedLargeHeader
(
props
:
TextProps
)
{
return
<
TextWrapper
fontWeight=
{
600
}
fontSize=
{
24
}
{
...
props
}
/>
return
<
TextWrapper
fontWeight=
{
600
}
fontSize=
{
24
}
{
...
props
}
/>
},
},
LargeHeader
(
props
:
TextProps
)
{
return
<
TextWrapper
fontWeight=
{
400
}
fontSize=
{
36
}
color=
{
'
textPrimary
'
}
{
...
props
}
/>
},
DeprecatedMediumHeader
(
props
:
TextProps
)
{
DeprecatedMediumHeader
(
props
:
TextProps
)
{
return
<
TextWrapper
fontWeight=
{
500
}
fontSize=
{
20
}
{
...
props
}
/>
return
<
TextWrapper
fontWeight=
{
500
}
fontSize=
{
20
}
{
...
props
}
/>
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment