From: Dessalines Date: Thu, 11 Feb 2021 20:35:27 +0000 (-0500) Subject: Adding an icon component. Fixes #172 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/%7BdocsUrl%7D?a=commitdiff_plain;h=2a85b93c589b33738d31dcdf124fba6b3e809e06;p=lemmy-ui.git Adding an icon component. Fixes #172 --- diff --git a/src/shared/components/admin-settings.tsx b/src/shared/components/admin-settings.tsx index 6b985a4..596c83c 100644 --- a/src/shared/components/admin-settings.tsx +++ b/src/shared/components/admin-settings.tsx @@ -25,6 +25,7 @@ import autosize from 'autosize'; import { SiteForm } from './site-form'; import { UserListing } from './user-listing'; import { HtmlTags } from './html-tags'; +import { Spinner } from './icon'; import { i18n } from '../i18next'; import { InitialFetchRequest } from 'shared/interfaces'; @@ -109,9 +110,7 @@ export class AdminSettings extends Component { /> {this.state.loading ? (
- - - +
) : (
@@ -185,9 +184,7 @@ export class AdminSettings extends Component {
); } diff --git a/src/shared/components/comment-form.tsx b/src/shared/components/comment-form.tsx index 53e7934..4142048 100644 --- a/src/shared/components/comment-form.tsx +++ b/src/shared/components/comment-form.tsx @@ -20,6 +20,7 @@ import { WebSocketService, UserService } from '../services'; import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; import { MarkdownTextArea } from './markdown-textarea'; +import { Icon } from './icon'; interface CommentFormProps { postId?: number; @@ -84,9 +85,7 @@ export class CommentForm extends Component { /> ) : (