You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
483 B
TypeScript
27 lines
483 B
TypeScript
5 years ago
|
import React from 'react';
|
||
|
|
||
|
interface Props {
|
||
|
loading: boolean;
|
||
|
}
|
||
|
|
||
|
export class SessionSpinner extends React.Component<Props> {
|
||
|
public static defaultProps = {
|
||
|
loading: true,
|
||
|
}
|
||
|
|
||
|
constructor(props: any) {
|
||
|
super(props);
|
||
|
}
|
||
|
|
||
|
public render() {
|
||
|
const { loading } = this.props;
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
{ loading ? (
|
||
|
<div className="session-loader"><div></div><div></div><div></div><div></div></div>
|
||
|
) : null }
|
||
|
</>
|
||
|
);
|
||
|
}
|
||
|
}
|