-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from lidofinance/develop
Merge develop to main
- Loading branch information
Showing
53 changed files
with
720 additions
and
123 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 +1,15 @@ | ||
export const enum CHAINS { | ||
export enum CHAINS { | ||
Mainnet = 1, | ||
Holesky = 17000, | ||
} | ||
|
||
export enum L2_CHAINS { | ||
zkSync = 324, | ||
Optimism = 10, | ||
Arbitrum = 42161, | ||
Polygon = 137, | ||
Base = 8453, | ||
Mantle = 5000, | ||
Linea = 59144, | ||
Scroll = 534352, | ||
} |
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
1 change: 1 addition & 0 deletions
1
features/rewards/components/rewardsListContent/RewardsListsEmpty.tsx
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { FC } from 'react'; | ||
|
||
import { ConnectWalletStyle } from './styles'; | ||
|
||
export const ConnectWallet: FC = () => { | ||
return ( | ||
<ConnectWalletStyle> | ||
<p>Connect your wallet to view staking stats</p> | ||
</ConnectWalletStyle> | ||
); | ||
}; |
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,28 @@ | ||
import styled, { css } from 'styled-components'; | ||
import { WalletCardStyle } from 'shared/wallet/card/styles'; | ||
|
||
export const WalletStyle = styled(WalletCardStyle)` | ||
background: linear-gradient( | ||
52.01deg, | ||
#37394a 0%, | ||
#363749 0.01%, | ||
#40504f 100% | ||
); | ||
padding: 0 0 24px 0; | ||
`; | ||
|
||
export const ConnectWalletStyle = styled(WalletCardStyle)` | ||
padding: 27px 27px 47px 27px; | ||
text-align: center; | ||
${({ theme }) => | ||
theme.name === 'dark' | ||
? css` | ||
color: var(--lido-color-text); | ||
background: linear-gradient(48.34deg, #46464f -5.55%, #3b3b47 100%); | ||
` | ||
: css` | ||
color: var(--lido-color-secondary); | ||
background: linear-gradient(48.34deg, #d2ddff -5.55%, #e6e6e6 100%); | ||
`} | ||
`; |
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,41 +1,17 @@ | ||
import { FC } from 'react'; | ||
import { Block, ThemeProvider, themeDark } from '@lidofinance/lido-ui'; | ||
import { InputDescription } from 'features/rewards/components/inputDescription'; | ||
import { AddressInput } from 'features/rewards/components/addressInput'; | ||
|
||
import { StatsWrapper } from 'features/rewards/components/statsWrapper'; | ||
import { Stats } from 'features/rewards/components/stats'; | ||
import { InputWrapper } from 'features/rewards/components/inputWrapper'; | ||
import { useRewardsHistory } from 'features/rewards/hooks'; | ||
|
||
const INPUT_DESC_TEXT = | ||
'Current balance may differ from last balance in the table due to rounding.'; | ||
import { Wallet } from './wallet'; | ||
|
||
export const TopCard: FC = () => { | ||
const { | ||
address, | ||
addressError, | ||
isAddressResolving, | ||
inputValue, | ||
setInputValue, | ||
} = useRewardsHistory(); | ||
|
||
return ( | ||
<Block color="accent" style={{ padding: 0 }}> | ||
<InputWrapper data-testid="inputSection" color="accent"> | ||
<ThemeProvider theme={themeDark}> | ||
<AddressInput | ||
address={address} | ||
addressError={addressError} | ||
inputValue={inputValue} | ||
handleInputChange={setInputValue} | ||
isAddressResolving={isAddressResolving} | ||
/> | ||
<InputDescription>{INPUT_DESC_TEXT}</InputDescription> | ||
</ThemeProvider> | ||
</InputWrapper> | ||
<> | ||
<Wallet /> | ||
<StatsWrapper> | ||
<Stats /> | ||
</StatsWrapper> | ||
</Block> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.