-
-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(console): use button loading in experience flow if possible
- Loading branch information
Showing
25 changed files
with
198 additions
and
81 deletions.
There are no files selected for viewing
6 changes: 2 additions & 4 deletions
6
packages/experience/src/Providers/LoadingLayerProvider/index.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
7 changes: 0 additions & 7 deletions
7
packages/experience/src/components/LoadingLayer/index.module.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
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,14 +1,16 @@ | ||
import LoadingMask from '../LoadingMask'; | ||
|
||
import LoadingIcon from './LoadingIcon'; | ||
import * as styles from './index.module.scss'; | ||
|
||
export { default as LoadingIcon } from './LoadingIcon'; | ||
|
||
const LoadingLayer = () => ( | ||
<div className={styles.overlay}> | ||
<LoadingMask> | ||
<div className={styles.container}> | ||
<LoadingIcon /> | ||
</div> | ||
</div> | ||
</LoadingMask> | ||
); | ||
|
||
export default LoadingLayer; |
8 changes: 8 additions & 0 deletions
8
packages/experience/src/components/LoadingMask/index.module.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,8 @@ | ||
@use '@/scss/underscore' as _; | ||
|
||
.overlay { | ||
position: fixed; | ||
inset: 0; | ||
@include _.flex-column; | ||
z-index: 300; | ||
} |
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,13 @@ | ||
import { type ReactNode } from 'react'; | ||
|
||
import * as styles from './index.module.scss'; | ||
|
||
type Props = { | ||
readonly children?: ReactNode; | ||
}; | ||
|
||
const LoadingMask = ({ children }: Props) => { | ||
return <div className={styles.overlay}>{children}</div>; | ||
}; | ||
|
||
export default LoadingMask; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ | |
.totpCodeInput { | ||
margin-top: _.unit(4); | ||
} | ||
|
||
.continueButton { | ||
margin-top: _.unit(6); | ||
} |
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 |
---|---|---|
|
@@ -27,7 +27,8 @@ | |
align-self: start; | ||
} | ||
|
||
.switch { | ||
.switch, | ||
.continueButton { | ||
margin-top: _.unit(6); | ||
} | ||
} |
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.