Skip to content

Commit 34aecc0

Browse files
committed
remove animation
1 parent eef666a commit 34aecc0

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/components/Members/AddEditMemberDialog.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC, useEffect, useMemo } from 'react';
1+
import { Activity, FC, useEffect, useMemo } from 'react';
22
import { Trans, useTranslation } from 'react-i18next';
33
import { z } from 'zod';
44
import { useForm, useWatch } from 'react-hook-form';
@@ -9,7 +9,6 @@ import styles from './Members.module.css';
99
import { RadioButtonsSelect } from '../Ui/RadioButtonsSelect/RadioButtonsSelect.tsx';
1010
import { ACCOUNT_TYPES, AccountType } from './EditMembers.tsx';
1111
import { useLink } from '../../lib/shared/useLink.ts';
12-
import { clsx } from 'clsx';
1312

1413
interface AddEditMemberDialogProps {
1514
open: boolean;
@@ -158,14 +157,7 @@ export const AddEditMemberDialog: FC<AddEditMemberDialogProps> = ({
158157
</div>
159158

160159
<div className={styles.placeholder}>
161-
<div
162-
className={clsx(
163-
styles.serviceAccountContainer,
164-
accountType === 'ServiceAccount'
165-
? styles.serviceAccountContainerVisible
166-
: styles.serviceAccountContainerHidden,
167-
)}
168-
>
160+
<Activity mode={accountType === 'ServiceAccount' ? 'visible' : 'hidden'}>
169161
<div>
170162
<FlexBox direction="Column">
171163
<Label for="namespace-input">{t('common.namespace')}</Label>
@@ -195,7 +187,7 @@ export const AddEditMemberDialog: FC<AddEditMemberDialogProps> = ({
195187
/>
196188
</MessageStrip>
197189
</div>
198-
</div>
190+
</Activity>
199191
</div>
200192

201193
<Button

0 commit comments

Comments
 (0)