-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(staking): [LW-7508] add un-delegation functionality (#634)
* feat(staking): add un-delegation functionality * feat(staking): adjust success screen to make sense with undelegation --------- Co-authored-by: Piotr Czeglik <[email protected]>
- Loading branch information
1 parent
c64342f
commit bda9570
Showing
13 changed files
with
124 additions
and
29 deletions.
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
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 |
---|---|---|
|
@@ -97,3 +97,7 @@ | |
} | ||
} | ||
} | ||
|
||
.noPoolsText { | ||
color: var(--text-color-secondary); | ||
} |
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
16 changes: 16 additions & 0 deletions
16
packages/staking/src/features/Drawer/preferences/NoPoolsSelected.css.ts
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,16 @@ | ||
import { style } from '@lace/ui'; | ||
import { theme } from '../../theme'; | ||
|
||
export const container = style({ | ||
alignItems: 'center', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}); | ||
|
||
export const icon = style({ | ||
fontSize: theme.spacing.$112, | ||
}); | ||
|
||
export const text = style({ | ||
color: theme.colors.$preferencesDrawerNoPoolsTextColor, | ||
}); |
23 changes: 23 additions & 0 deletions
23
packages/staking/src/features/Drawer/preferences/NoPoolsSelected.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Box, Button, Text } from '@lace/ui'; | ||
import { useTranslation } from 'react-i18next'; | ||
import * as styles from './NoPoolsSelected.css'; | ||
import SadSmiley from './sad-smiley.svg'; | ||
|
||
export const NoPoolsSelected = ({ | ||
onBrowsePoolsButtonClick, | ||
}: { | ||
onBrowsePoolsButtonClick: () => void; | ||
}): React.ReactElement => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<Box className={styles.container}> | ||
<SadSmiley className={styles.icon} /> | ||
<Text.Body.Normal className={styles.text} weight="$semibold"> | ||
{t('drawer.preferences.noSelectedPools')} | ||
</Text.Body.Normal> | ||
<Box mt="$40"> | ||
<Button.CallToAction label={t('drawer.preferences.browsePools')} onClick={onBrowsePoolsButtonClick} /> | ||
</Box> | ||
</Box> | ||
); | ||
}; |
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
9 changes: 9 additions & 0 deletions
9
packages/staking/src/features/Drawer/preferences/sad-smiley.svg
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
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