Skip to content

Commit

Permalink
Update staking modals
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjurco committed Jan 15, 2025
1 parent 971d2bb commit 5db919d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
13 changes: 11 additions & 2 deletions src/pages/dashboard/forms/forms.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,24 @@
}

.tokenAmountFormHelperText {
display: flex;

svg {
flex-shrink: 0;
width: 20px;
height: 20px;
margin-right: 8px;
color: $color-action-warning-600;
}

@include font-body-15;
margin-top: 24px;
color: $color-dark-blue-400;
text-align: center;
padding: 0 24px;
text-wrap: pretty;

@media (min-width: $sm) {
@include font-body-9;
@include font-body-12;
padding: 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/forms/token-deposit-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const TokenDepositForm = (props: Props) => {
</Button>
) : (
<Button
type="text-blue"
type="secondary-neutral"
size="sm"
sm={{ size: 'lg' }}
onClick={handleDeposit('deposit-only')}
Expand Down
8 changes: 7 additions & 1 deletion src/pages/dashboard/forms/unstake-helper-text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ExclamationTriangleFillIcon } from '../../../components/icons';
import styles from './forms.module.scss';

const messages = {
Expand All @@ -13,7 +14,12 @@ interface UnstakeHelperTextProps {
const UnstakeHelperText = (props: UnstakeHelperTextProps) => {
const { type } = props;

return <p className={styles.tokenAmountFormHelperText}>{messages[type]}</p>;
return (
<div className={styles.tokenAmountFormHelperText}>
<ExclamationTriangleFillIcon />
{messages[type]}
</div>
);
};

export default UnstakeHelperText;
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@

.confirmationText {
margin-top: 24px;
text-align: center;
text-wrap: pretty;
display: flex;
align-items: center;
color: $color-dark-blue-400;
@include font-body-15;

svg {
flex-shrink: 0;
width: 20px;
height: 20px;
margin-right: 8px;
Expand Down

0 comments on commit 5db919d

Please sign in to comment.