You've already forked mattermost-webapp
mirror of
https://github.com/zerotier/mattermost-webapp.git
synced 2026-05-22 16:23:25 -07:00
45bedfd0c7
* Bot accounts backstange UI * Text updates Co-Authored-By: crspeller <crspeller@gmail.com> * Fixing some bugs and feedback. * Updating UI fixes * Reverting package files * Updating bots css * Updating integration buttons * Apply PM text changes Co-Authored-By: crspeller <crspeller@gmail.com> * Fixing text and bad redux version change. * Typo. Co-Authored-By: crspeller <crspeller@gmail.com> * Bot tags and UI sugar. * Username sort order for bots. * Style fixes * Updating highlight and error * More bot tags! * DM Fixes. * Bot account backstange profile pictures. * Automatic tokens. * Fix page crash * Updating styling for bots * Add permission managment UI for bots. * Removing email and signin method from bots in system console. * Text changes. * Fixing tests. * Commenting out bots UI * Fixing style error * en.json update with i18n-extract * Feedback fixes * Text fixes. Co-Authored-By: crspeller <crspeller@gmail.com> * Refactoring oriantation handling. * Avoiding passing user in post_header. * Removing test failing because of test archatecture issues. * Fixing double tag in search and bot DM header popover. * Fix test. * Verious feedback.
31 lines
721 B
React
31 lines
721 B
React
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
|
|
import LoadingSpinner from './loading_spinner.jsx';
|
|
|
|
export default class LoadingWrapper extends React.Component {
|
|
static propTypes = {
|
|
loading: PropTypes.bool.isRequired,
|
|
text: PropTypes.node,
|
|
children: PropTypes.node,
|
|
}
|
|
|
|
static defaultProps = {
|
|
loading: true,
|
|
text: null,
|
|
children: null,
|
|
}
|
|
|
|
render() {
|
|
const {text, loading, children} = this.props;
|
|
if (!loading) {
|
|
return children;
|
|
}
|
|
|
|
return <LoadingSpinner text={text}/>;
|
|
}
|
|
}
|