Merge branch 'fix/spinner_size' into fix/reorg_1

This commit is contained in:
Dessalines 2021-07-17 16:22:14 -04:00
commit cb15c1881c
13 changed files with 25 additions and 16 deletions

View file

@ -132,7 +132,7 @@
margin-bottom: 2px; margin-bottom: 2px;
} }
.icon-spinner { .spinner-large {
width: 4em; width: 4em;
height: 4em; height: 4em;
} }

View file

@ -22,12 +22,21 @@ export class Icon extends Component<IconProps, any> {
} }
} }
export class Spinner extends Component<any, any> { interface SpinnerProps {
large?: boolean;
}
export class Spinner extends Component<SpinnerProps, any> {
constructor(props: any, context: any) { constructor(props: any, context: any) {
super(props, context); super(props, context);
} }
render() { render() {
return <Icon icon="spinner" classes="icon-spinner spin" />; return (
<Icon
icon="spinner"
classes={`spin ${this.props.large && "spinner-large"}`}
/>
);
} }
} }

View file

@ -105,7 +105,7 @@ export class Communities extends Component<any, CommunitiesState> {
/> />
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div> <div>

View file

@ -243,7 +243,7 @@ export class Community extends Component<any, State> {
<div class="container"> <div class="container">
{this.state.communityLoading ? ( {this.state.communityLoading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">
@ -282,7 +282,7 @@ export class Community extends Component<any, State> {
return this.state.dataType == DataType.Post ? ( return this.state.dataType == DataType.Post ? (
this.state.postsLoading ? ( this.state.postsLoading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<PostListings <PostListings
@ -294,7 +294,7 @@ export class Community extends Component<any, State> {
) )
) : this.state.commentsLoading ? ( ) : this.state.commentsLoading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<CommentNodes <CommentNodes

View file

@ -53,7 +53,7 @@ export class CreateCommunity extends Component<any, CreateCommunityState> {
/> />
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">

View file

@ -111,7 +111,7 @@ export class AdminSettings extends Component<any, AdminSettingsState> {
/> />
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">

View file

@ -549,7 +549,7 @@ export class Home extends Component<any, HomeState> {
<div class="main-content-wrapper"> <div class="main-content-wrapper">
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div> <div>

View file

@ -407,7 +407,7 @@ export class Modlog extends Component<any, ModlogState> {
/> />
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div> <div>

View file

@ -140,7 +140,7 @@ export class Inbox extends Component<any, InboxState> {
<div class="container"> <div class="container">
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">

View file

@ -273,7 +273,7 @@ export class Person extends Component<any, PersonState> {
<div class="container"> <div class="container">
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">

View file

@ -111,7 +111,7 @@ export class CreatePost extends Component<any, CreatePostState> {
/> />
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">

View file

@ -252,7 +252,7 @@ export class Post extends Component<any, PostState> {
<div class="container"> <div class="container">
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">

View file

@ -110,7 +110,7 @@ export class CreatePrivateMessage extends Component<
/> />
{this.state.loading ? ( {this.state.loading ? (
<h5> <h5>
<Spinner /> <Spinner large />
</h5> </h5>
) : ( ) : (
<div class="row"> <div class="row">