lbry-desktop/src/renderer/component/video/internal/loading-screen.jsx
Sean Yesmunt 492b1601f6 feature: use internal-apis for subscriptions and add page loader
update subscription types

update changelog

Simplify subscriptions sync logic

add claim type

use let over const

change spinner color based on theme

clean up subscriptions
2018-05-15 11:16:14 -04:00

28 lines
515 B
JavaScript

// @flow
import React from 'react';
import Spinner from 'component/spinner';
type Props = {
spinner: boolean,
status: string,
};
class LoadingScreen extends React.PureComponent<Props> {
static defaultProps = {
spinner: true,
};
render() {
const { status, spinner } = this.props;
return (
<div className="content__loading">
{spinner && <Spinner light />}
<span className="content__loading-text">{status}</span>
</div>
);
}
}
export default LoadingScreen;