forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adrienne/feat: responsive view for success and password modal (deriv-…
…com#10871) * chore: backup * chore: added responsive view for success and password modal * chore: reverted test changes * chore: removed unused scss file * chore: removed unused scss file * chore: fix eslint issues * chore: fix eslint issues * chore: removed unused css and fix padding issue in header step modal * chore: refactored code based on reviews * chore: remove usage of children * chore: fix eslint issues
- Loading branch information
1 parent
024f9ba
commit 2c115b5
Showing
15 changed files
with
186 additions
and
26 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
15 changes: 15 additions & 0 deletions
15
packages/wallets/src/components/Base/WalletButtonGroup/WalletButtonGroup.scss
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,15 @@ | ||
.wallets-button-group { | ||
display: grid; | ||
width: 100%; | ||
gap: 1.2rem; | ||
grid-auto-columns: minmax(0, 1fr); | ||
grid-auto-flow: column; | ||
|
||
&--flex { | ||
grid-auto-columns: auto; | ||
} | ||
|
||
&--vertical { | ||
flex-direction: column; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
packages/wallets/src/components/Base/WalletButtonGroup/WalletButtonGroup.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 React, { FC, PropsWithChildren } from 'react'; | ||
import classNames from 'classnames'; | ||
import './WalletButtonGroup.scss'; | ||
|
||
type TWalletButtonGroupProps = { | ||
isFlex?: boolean; | ||
isVertical?: boolean; | ||
}; | ||
|
||
const WalletButtonGroup: FC<PropsWithChildren<TWalletButtonGroupProps>> = ({ children, isFlex, isVertical }) => { | ||
return ( | ||
<div | ||
className={classNames('wallets-button-group', { | ||
'wallets-button-group--flex': isFlex, | ||
'wallets-button-group--vertical': isVertical, | ||
})} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default WalletButtonGroup; |
1 change: 1 addition & 0 deletions
1
packages/wallets/src/components/Base/WalletButtonGroup/index.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 @@ | ||
export { default as WalletButtonGroup } from './WalletButtonGroup'; |
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
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
Oops, something went wrong.