From 8f132f67fa83343ed1b4d0e2b6366fa3e2138100 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 18 Sep 2021 16:40:59 -0400 Subject: [PATCH] Fix up post, profile and community forms. Fixes #409 (#423) --- src/shared/components/app/navbar.tsx | 4 +- .../components/common/image-upload-form.tsx | 2 +- .../components/community/community-form.tsx | 72 ++++--- src/shared/components/person/settings.tsx | 196 ++++++++++-------- src/shared/components/post/post-form.tsx | 8 +- src/shared/utils.ts | 4 +- 6 files changed, 154 insertions(+), 132 deletions(-) diff --git a/src/shared/components/app/navbar.tsx b/src/shared/components/app/navbar.tsx index 6f204691..96812852 100644 --- a/src/shared/components/app/navbar.tsx +++ b/src/shared/components/app/navbar.tsx @@ -20,6 +20,7 @@ import { i18n } from "../../i18next"; import { UserService, WebSocketService } from "../../services"; import { authField, + donateLemmyUrl, fetchLimit, getLanguage, isBrowser, @@ -28,7 +29,6 @@ import { numToSI, setTheme, showAvatars, - supportLemmyUrl, toast, wsClient, wsJsonToRes, @@ -241,7 +241,7 @@ export class Navbar extends Component { diff --git a/src/shared/components/common/image-upload-form.tsx b/src/shared/components/common/image-upload-form.tsx index a090bc89..5e5f1e09 100644 --- a/src/shared/components/common/image-upload-form.tsx +++ b/src/shared/components/common/image-upload-form.tsx @@ -36,7 +36,7 @@ export class ImageUploadForm extends Component<