From ba4bd16143543c361756456fc1163ea43cb58161 Mon Sep 17 00:00:00 2001 From: Kristofer Date: Fri, 18 Aug 2023 10:20:00 +0200 Subject: [PATCH] Display community details on settings page --- .../components/ApplicationSettings.tsx | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/Settings/components/ApplicationSettings.tsx b/packages/frontend/src/pages/Settings/components/ApplicationSettings.tsx index e51b81070..bb646b4c2 100644 --- a/packages/frontend/src/pages/Settings/components/ApplicationSettings.tsx +++ b/packages/frontend/src/pages/Settings/components/ApplicationSettings.tsx @@ -4,6 +4,8 @@ import { Box } from '@/components/ui/Box'; import { SettingsSubgroup } from './SettingsSubgroup'; import ApplicationSettingsApiKeys from './ApplicationSettingsApiKeys'; import { Setting as SettingDto } from '@/model/settings/dto/setting.dto'; +import { useRecoilValue } from 'recoil'; +import { CurrentCommunity } from '../../../model/community/community'; interface Params { settings: SettingDto[] | undefined; @@ -16,13 +18,29 @@ export const ApplicationSettings = ({ settings, parentOnSubmit, }: Params): JSX.Element | null => { + const community = useRecoilValue(CurrentCommunity); if (!settings) return null; - return ( <> - + <> +
+
+ +
{community?.creator}
+
+
+ +
+ {community?.owners.map((owner) => ( +
{owner}
+ ))} +
+
+
+ +