Skip to content

Commit

Permalink
fix: topic field in createTeamModal
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Dec 6, 2022
1 parent 17d9618 commit 91e4e86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/meteor/client/sidebar/header/CreateTeam/CreateTeamModal.tsx
Expand Up @@ -10,7 +10,7 @@ import { goToRoomById } from '../../../lib/utils/goToRoomById';

type CreateTeamModalInputs = {
name: string;
description: string;
topic: string;
isPrivate: boolean;
readOnly: boolean;
encrypted: boolean;
Expand Down Expand Up @@ -93,7 +93,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement =>
members,
isPrivate,
readOnly,
description,
topic,
broadcast,
encrypted,
}: CreateTeamModalInputs): Promise<void> => {
Expand All @@ -104,7 +104,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement =>
room: {
readOnly,
extraData: {
description,
topic,
broadcast,
encrypted,
},
Expand Down Expand Up @@ -155,7 +155,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement =>
</Box>
</Field.Label>
<Field.Row>
<TextInput {...register('description')} placeholder={t('Teams_New_Description_Placeholder')} />
<TextInput {...register('topic')} placeholder={t('Teams_New_Description_Placeholder')} />
</Field.Row>
</Field>
<Field>
Expand All @@ -175,7 +175,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement =>
/>
</Box>
</Field>
<Field disabled={!canChangeReadOnly}>
<Field>
<Box display='flex' justifyContent='space-between' alignItems='start'>
<Box display='flex' flexDirection='column' width='full'>
<Field.Label>{t('Teams_New_Read_only_Label')}</Field.Label>
Expand All @@ -192,7 +192,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement =>
/>
</Box>
</Field>
<Field disabled={!canChangeEncrypted}>
<Field>
<Box display='flex' justifyContent='space-between' alignItems='start'>
<Box display='flex' flexDirection='column' width='full'>
<Field.Label>{t('Teams_New_Encrypted_Label')}</Field.Label>
Expand Down

0 comments on commit 91e4e86

Please sign in to comment.