do not shrink SessionSpinner
parent
5109f9fdda
commit
e9f186065d
@ -1,32 +1,22 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
interface Props {
|
type Props = {
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
export class SessionSpinner extends React.Component<Props> {
|
export const SessionSpinner = (props: Props) => {
|
||||||
public static defaultProps = {
|
const { loading } = props;
|
||||||
loading: true,
|
|
||||||
};
|
|
||||||
|
|
||||||
constructor(props: any) {
|
return (
|
||||||
super(props);
|
<>
|
||||||
}
|
{loading ? (
|
||||||
|
<div className="session-loader">
|
||||||
public render() {
|
<div />
|
||||||
const { loading } = this.props;
|
<div />
|
||||||
|
<div />
|
||||||
return (
|
<div />
|
||||||
<>
|
</div>
|
||||||
{loading ? (
|
) : null}
|
||||||
<div className="session-loader">
|
</>
|
||||||
<div />
|
);
|
||||||
<div />
|
};
|
||||||
<div />
|
|
||||||
<div />
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue