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
37b0e2fa
Unverified
Commit
37b0e2fa
authored
Feb 16, 2021
by
Jordan Frankfurt
Committed by
GitHub
Feb 16, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7 from Uniswap/prettier-upgrade
upgrade prettier
parents
64c97f7e
b6d85123
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16830 additions
and
16 deletions
+16830
-16
.eslintrc.json
.eslintrc.json
+2
-1
bug-report.md
.github/ISSUE_TEMPLATE/bug-report.md
+2
-1
release.yaml
.github/workflows/release.yaml
+2
-2
tests.yaml
.github/workflows/tests.yaml
+1
-2
README.md
README.md
+7
-7
package.json
package.json
+8
-1
index.tsx
src/components/CurrencyInputPanel/index.tsx
+0
-1
useAddTokenToMetamask.ts
src/hooks/useAddTokenToMetamask.ts
+0
-1
yarn.lock
yarn.lock
+16808
-0
No files found.
.eslintrc.json
View file @
37b0e2fa
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
"@typescript-eslint/explicit-function-return-type"
:
"off"
,
"@typescript-eslint/explicit-function-return-type"
:
"off"
,
"prettier/prettier"
:
"error"
,
"prettier/prettier"
:
"error"
,
"@typescript-eslint/no-explicit-any"
:
"off"
,
"@typescript-eslint/no-explicit-any"
:
"off"
,
"@typescript-eslint/ban-ts-comment"
:
"off"
"@typescript-eslint/ban-ts-comment"
:
"off"
,
"@typescript-eslint/ban-ts-ignore"
:
"off"
}
}
}
}
.github/ISSUE_TEMPLATE/bug-report.md
View file @
37b0e2fa
...
@@ -10,9 +10,10 @@ assignees: ''
...
@@ -10,9 +10,10 @@ assignees: ''
A clear and concise description of the bug.
A clear and concise description of the bug.
**Steps to Reproduce**
**Steps to Reproduce**
1.
Go to ...
1.
Go to ...
2.
Click on ...
2.
Click on ...
...
...
**Expected Behavior**
**Expected Behavior**
A clear and concise description of what you expected to happen.
A clear and concise description of what you expected to happen.
...
...
.github/workflows/release.yaml
View file @
37b0e2fa
name
:
Release
name
:
Release
on
:
on
:
# schedule:
# schedule:
# - cron: '0 12 * * 1-4' # every day 12:00 UTC Monday-Thursday
# - cron: '0 12 * * 1-4' # every day 12:00 UTC Monday-Thursday
# manual trigger
# manual trigger
workflow_dispatch
:
workflow_dispatch
:
...
...
.github/workflows/tests.yaml
View file @
37b0e2fa
...
@@ -35,7 +35,7 @@ jobs:
...
@@ -35,7 +35,7 @@ jobs:
-
run
:
yarn build
-
run
:
yarn build
env
:
env
:
CI
:
false
CI
:
false
REACT_APP_NETWORK_URL
:
"
https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847"
REACT_APP_NETWORK_URL
:
'
https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847'
-
run
:
yarn integration-test
-
run
:
yarn integration-test
unit-tests
:
unit-tests
:
...
@@ -62,4 +62,3 @@ jobs:
...
@@ -62,4 +62,3 @@ jobs:
${{ runner.os }}-yarn-
${{ runner.os }}-yarn-
-
run
:
yarn install --frozen-lockfile
-
run
:
yarn install --frozen-lockfile
-
run
:
yarn test
-
run
:
yarn test
README.md
View file @
37b0e2fa
package.json
View file @
37b0e2fa
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
"
eslint-plugin-react
"
:
"
^7.19.0
"
,
"
eslint-plugin-react
"
:
"
^7.19.0
"
,
"
eslint-plugin-react-hooks
"
:
"
^4.0.0
"
,
"
eslint-plugin-react-hooks
"
:
"
^4.0.0
"
,
"
ethers
"
:
"
^5.0.7
"
,
"
ethers
"
:
"
^5.0.7
"
,
"
husky
"
:
"
^5.0.9
"
,
"
i18next
"
:
"
^15.0.9
"
,
"
i18next
"
:
"
^15.0.9
"
,
"
i18next-browser-languagedetector
"
:
"
^3.0.1
"
,
"
i18next-browser-languagedetector
"
:
"
^3.0.1
"
,
"
i18next-xhr-backend
"
:
"
^2.0.1
"
,
"
i18next-xhr-backend
"
:
"
^2.0.1
"
,
...
@@ -62,7 +63,8 @@
...
@@ -62,7 +63,8 @@
"
multihashes
"
:
"
^3.0.1
"
,
"
multihashes
"
:
"
^3.0.1
"
,
"
node-vibrant
"
:
"
^3.1.5
"
,
"
node-vibrant
"
:
"
^3.1.5
"
,
"
polished
"
:
"
^3.3.2
"
,
"
polished
"
:
"
^3.3.2
"
,
"
prettier
"
:
"
^1.17.0
"
,
"
prettier
"
:
"
^2.2.1
"
,
"
pretty-quick
"
:
"
^3.1.0
"
,
"
qs
"
:
"
^6.9.4
"
,
"
qs
"
:
"
^6.9.4
"
,
"
react
"
:
"
^17.0.1
"
,
"
react
"
:
"
^17.0.1
"
,
"
react-confetti
"
:
"
^6.0.0
"
,
"
react-confetti
"
:
"
^6.0.0
"
,
...
@@ -121,5 +123,10 @@
...
@@ -121,5 +123,10 @@
"dependencies"
:
{
"dependencies"
:
{
"
@uniswap/default-token-list
"
:
"
^2.0.0
"
,
"
@uniswap/default-token-list
"
:
"
^2.0.0
"
,
"
lightweight-charts
"
:
"
^3.3.0
"
"
lightweight-charts
"
:
"
^3.3.0
"
},
"husky"
:
{
"hooks"
:
{
"pre-commit"
:
"pretty-quick --staged"
}
}
}
}
}
src/components/CurrencyInputPanel/index.tsx
View file @
37b0e2fa
...
@@ -88,7 +88,6 @@ const Container = styled.div<{ hideInput: boolean }>`
...
@@ -88,7 +88,6 @@ const Container = styled.div<{ hideInput: boolean }>`
const
StyledTokenName
=
styled
.
span
<
{
active
?:
boolean
}
>
`
const
StyledTokenName
=
styled
.
span
<
{
active
?:
boolean
}
>
`
${({
active
})
=>
(
active
?
'
margin: 0 0.25rem 0 0.75rem;
'
:
'
margin: 0 0.25rem 0 0.25rem;
'
)}
${({
active
})
=>
(
active
?
'
margin: 0 0.25rem 0 0.75rem;
'
:
'
margin: 0 0.25rem 0 0.25rem;
'
)}
font-size:
${({
active
})
=>
(
active
?
'
20px
'
:
'
16px
'
)}
;
font-size:
${({
active
})
=>
(
active
?
'
20px
'
:
'
16px
'
)}
;
`
`
const
StyledBalanceMax
=
styled
.
button
`
const
StyledBalanceMax
=
styled
.
button
`
...
...
src/hooks/useAddTokenToMetamask.ts
View file @
37b0e2fa
...
@@ -19,7 +19,6 @@ export default function useAddTokenToMetamask(
...
@@ -19,7 +19,6 @@ export default function useAddTokenToMetamask(
.
request
({
.
request
({
method
:
'
wallet_watchAsset
'
,
method
:
'
wallet_watchAsset
'
,
params
:
{
params
:
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore // need this for incorrect ethers provider type
//@ts-ignore // need this for incorrect ethers provider type
type
:
'
ERC20
'
,
type
:
'
ERC20
'
,
options
:
{
options
:
{
...
...
yarn.lock
0 → 100644
View file @
37b0e2fa
This diff is collapsed.
Click to expand it.
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