generated from lidofinance/lido-frontend-template
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UI-666] Integrate lido warehouse packages #82
Open
solidovic
wants to merge
24
commits into
develop
Choose a base branch
from
integrate-lido-warehouse-packages
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5662f73
Merge pull request #40 from lidofinance/develop
infoster42 5c21727
Merge pull request #51 from lidofinance/develop
infoster42 337ff40
Merge pull request #54 from lidofinance/develop
infoster42 6c8f55d
Merge pull request #58 from lidofinance/develop
hexnickk4997 7f9b286
Merge pull request #62 from lidofinance/develop
infoster42 d6e5a0b
Merge pull request #66 from lidofinance/develop
infoster42 3a5dec0
Merge pull request #72 from lidofinance/develop
infoster42 4f5debc
Merge pull request #75 from lidofinance/develop
vtrush88 972fda4
Merge pull request #79 from lidofinance/develop
infoster42 e5cf71d
Merge pull request #81 from lidofinance/develop
infoster42 b0028f2
feat: update deps
solidovic 3eeaa37
feat: use wareouse layout
solidovic bae216b
feat: use `eth-ui-wallet-modal` from warehouse
solidovic 1206dd6
feat: use `ui-primitives` from warehouse
solidovic a6b43c1
Merge remote-tracking branch 'origin/main' into integrate-lido-wareho…
solidovic 4b0f7a0
fix: types errors
solidovic c29c7c5
refactor: codestyle
solidovic 826867e
fix: env import for local development
solidovic 1b2df9e
refactor: use ConnectWalletButton instead WalletConnectButton
solidovic 17c6afd
refactor: use ConnectWalletButton instead WalletConnectButton
solidovic 8580fd4
refactor: use ConnectWalletButton instead WalletConnectButton
solidovic 86fa262
refactor: use CHAINS from local
solidovic 8221754
refactor: not use fallback fo FormatToken and TokenToWallet
solidovic 93131f8
chore: update warehouse pkgs
solidovic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { ConnectWalletButton } from '@lidofinance/eth-ui-wallet-modal'; | ||
import { InputGroupStyled, InputNumber, Main } from 'shared/ui'; | ||
import { WalletConnect } from 'features/walletModal'; | ||
|
||
export const AragonFormDisconnected = () => { | ||
return ( | ||
<Main.Card> | ||
<InputGroupStyled fullwidth> | ||
<InputNumber fullwidth label="Vote ID" disabled /> | ||
</InputGroupStyled> | ||
<WalletConnect fullwidth /> | ||
<ConnectWalletButton fullwidth /> | ||
</Main.Card> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React, { FC } from 'react'; | ||
import { getChainColor } from '@lido-sdk/constants'; | ||
import { | ||
WalletButton, | ||
ConnectWalletButton, | ||
} from '@lidofinance/eth-ui-wallet-modal'; | ||
import { useWeb3 } from 'reef-knot/web3-react'; | ||
import { CHAINS } from 'config/chains'; | ||
import { HeaderWalletChainStyle } from './headerActionsStyles'; | ||
|
||
export const HeaderActions: FC = () => { | ||
const { active, chainId } = useWeb3(); | ||
|
||
const chainName = chainId ? CHAINS[chainId] : CHAINS.Mainnet; | ||
const testNet = chainId !== CHAINS.Mainnet; | ||
const showNet = testNet && active; | ||
|
||
return ( | ||
<> | ||
{showNet && ( | ||
<HeaderWalletChainStyle | ||
$color={getChainColor(chainId || CHAINS.Mainnet)} | ||
> | ||
{chainName} | ||
</HeaderWalletChainStyle> | ||
)} | ||
{active ? <WalletButton /> : <ConnectWalletButton size="sm" />} | ||
</> | ||
); | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './headerActions'; | ||
export * from './headerActionsStyles'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind removing spaces? All codebase is without them 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but wants some order in imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets make it in next PR (because will be many change files) via https://github.com/azat-io/eslint-plugin-perfectionist