-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loading): Update loading experience to latest designs (#1345)
- Loading branch information
Showing
62 changed files
with
194 additions
and
668 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { PreviewLoading } from 'box-ui-elements/es/components/preview'; | ||
|
||
export type Options = { | ||
containerEl: HTMLElement; | ||
}; | ||
|
||
export default class LoadingIcon { | ||
containerEl: HTMLElement; | ||
|
||
constructor({ containerEl }: Options) { | ||
this.containerEl = containerEl; | ||
} | ||
|
||
destroy(): void { | ||
ReactDOM.unmountComponentAtNode(this.containerEl); | ||
} | ||
|
||
render(extension: string): void { | ||
ReactDOM.render(<PreviewLoading extension={extension} />, this.containerEl); | ||
} | ||
} |
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.