-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-1078]: added files related to loader into new folder
- Loading branch information
1 parent
f8dc5ef
commit 8d66388
Showing
4 changed files
with
40 additions
and
2 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,3 @@ | ||
.loading-panel { | ||
align-items: baseline !important; | ||
} |
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,35 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import React, {PureComponent} from 'react'; | ||
import './loading.scss'; | ||
|
||
type Props = { | ||
position?: 'absolute' | 'fixed' | 'relative' | 'static' | 'inherit'; | ||
style?: object; | ||
}; | ||
|
||
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 loading-panel'> | ||
<h3> | ||
{'Loading'} | ||
</h3> | ||
<div className='round round-1'/> | ||
<div className='round round-2'/> | ||
<div className='round round-3'/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
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