diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 45b34cee..80eb20b1 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -132,7 +132,7 @@ margin-bottom: 2px; } -.icon-spinner { +.spinner-large { width: 4em; height: 4em; } diff --git a/src/shared/components/common/icon.tsx b/src/shared/components/common/icon.tsx index 5c61d9dc..3d103c7c 100644 --- a/src/shared/components/common/icon.tsx +++ b/src/shared/components/common/icon.tsx @@ -22,12 +22,21 @@ export class Icon extends Component { } } -export class Spinner extends Component { +interface SpinnerProps { + large?: boolean; +} + +export class Spinner extends Component { constructor(props: any, context: any) { super(props, context); } render() { - return ; + return ( + + ); } } diff --git a/src/shared/components/community/communities.tsx b/src/shared/components/community/communities.tsx index da4b3564..d57f1a45 100644 --- a/src/shared/components/community/communities.tsx +++ b/src/shared/components/community/communities.tsx @@ -105,7 +105,7 @@ export class Communities extends Component { /> {this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/community/community.tsx b/src/shared/components/community/community.tsx index a1a11375..954c1977 100644 --- a/src/shared/components/community/community.tsx +++ b/src/shared/components/community/community.tsx @@ -243,7 +243,7 @@ export class Community extends Component {
{this.state.communityLoading ? (
- +
) : (
@@ -282,7 +282,7 @@ export class Community extends Component { return this.state.dataType == DataType.Post ? ( this.state.postsLoading ? (
- +
) : ( { ) ) : this.state.commentsLoading ? (
- +
) : ( { /> {this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/home/admin-settings.tsx b/src/shared/components/home/admin-settings.tsx index a35297c6..cc8be245 100644 --- a/src/shared/components/home/admin-settings.tsx +++ b/src/shared/components/home/admin-settings.tsx @@ -111,7 +111,7 @@ export class AdminSettings extends Component { /> {this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/home/home.tsx b/src/shared/components/home/home.tsx index be345283..78ea5112 100644 --- a/src/shared/components/home/home.tsx +++ b/src/shared/components/home/home.tsx @@ -549,7 +549,7 @@ export class Home extends Component {
{this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/modlog.tsx b/src/shared/components/modlog.tsx index 393787d6..f41a3658 100644 --- a/src/shared/components/modlog.tsx +++ b/src/shared/components/modlog.tsx @@ -407,7 +407,7 @@ export class Modlog extends Component { /> {this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/person/inbox.tsx b/src/shared/components/person/inbox.tsx index ceee666b..10375874 100644 --- a/src/shared/components/person/inbox.tsx +++ b/src/shared/components/person/inbox.tsx @@ -140,7 +140,7 @@ export class Inbox extends Component {
{this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/person/person.tsx b/src/shared/components/person/person.tsx index d5fee8b2..a314a307 100644 --- a/src/shared/components/person/person.tsx +++ b/src/shared/components/person/person.tsx @@ -273,7 +273,7 @@ export class Person extends Component {
{this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/post/create-post.tsx b/src/shared/components/post/create-post.tsx index 0dabcd38..edd768de 100644 --- a/src/shared/components/post/create-post.tsx +++ b/src/shared/components/post/create-post.tsx @@ -111,7 +111,7 @@ export class CreatePost extends Component { /> {this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 8c86693e..6bd64198 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -252,7 +252,7 @@ export class Post extends Component {
{this.state.loading ? (
- +
) : (
diff --git a/src/shared/components/private_message/create-private-message.tsx b/src/shared/components/private_message/create-private-message.tsx index 51ac9828..5bd6a486 100644 --- a/src/shared/components/private_message/create-private-message.tsx +++ b/src/shared/components/private_message/create-private-message.tsx @@ -110,7 +110,7 @@ export class CreatePrivateMessage extends Component< /> {this.state.loading ? (
- +
) : (