-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [GH-1078]: fixed the alignment issue of loading ellipses * [GH-1078]: added files related to loader into new folder * [GH-1078]: deleting duplicate files * [GH-1078]: renamed the loading file to loading/index.tsx * [GH-1078]: fixed the alignment of ellipses after Loading to the middle * [GH-1078]: updated the snap file * [GH-1078]: removed loading.scss file and added inline styling
- Loading branch information
1 parent
93e0be7
commit 98af6b8
Showing
2 changed files
with
19 additions
and
40 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 |
---|---|---|
@@ -1,34 +1,22 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import React, {PureComponent} from 'react'; | ||
import React from 'react'; | ||
|
||
type Props = { | ||
position?: 'absolute' | 'fixed' | 'relative' | 'static' | 'inherit'; | ||
style?: object; | ||
const Loading = () => { | ||
return ( | ||
<div | ||
className='loading-screen' | ||
style={{position: 'relative'}} | ||
> | ||
<div className='loading__content'> | ||
<h3 style={{margin: '20px 0'}}>{'Loading'}</h3> | ||
<div className='round round-1'/> | ||
<div className='round round-2'/> | ||
<div className='round round-3'/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default class Loading extends PureComponent<Props> { | ||
static defaultProps = { | ||
position: 'relative', | ||
style: {}, | ||
}; | ||
|
||
public render() { | ||
return ( | ||
<div | ||
className='loading-screen' | ||
style={{position: this.props.position, ...this.props.style}} | ||
> | ||
<div className='loading__content'> | ||
<h3> | ||
{'Loading'} | ||
</h3> | ||
<div className='round round-1'/> | ||
<div className='round round-2'/> | ||
<div className='round round-3'/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
export default Loading; |
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