+ {title && (
+
+
+
+ )}
+ {fields.map((field, index) => (
+
+ {isLoading ?
:
{render(index)}
}
+ {fields.length > 1 && (
+
{
+ onRemove(index);
+ }}
+ >
+
+
+ )}
+
+ ))}
+ {!isLoading && (
+
}
+ onClick={() => {
+ onAdd();
+ }}
+ />
+ )}
+
+ );
+}
+
+export default DynamicFormFields;
diff --git a/packages/console/src/pages/Organizations/Guide/Step1/index.module.scss b/packages/console/src/pages/Organizations/Guide/Step1/index.module.scss
deleted file mode 100644
index 83634dc87..000000000
--- a/packages/console/src/pages/Organizations/Guide/Step1/index.module.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-@use '@/scss/underscore' as _;
-@use '@/scss/dimensions' as dim;
-
-.container {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: _.unit(6);
-
- .card {
- display: flex;
- flex-direction: column;
- width: 100%;
- max-width: dim.$guide-main-content-max-width;
- padding: _.unit(12);
- gap: _.unit(6);
-
- .image {
- width: 100%;
- }
-
- .icon {
- width: 48px;
- height: 48px;
- flex-shrink: 0;
- }
-
- .title {
- font: var(--font-title-1);
- }
-
- .subtitle {
- font: var(--font-body-2);
- }
- }
-}
diff --git a/packages/console/src/pages/Organizations/Guide/Step1/index.tsx b/packages/console/src/pages/Organizations/Guide/Step1/index.tsx
deleted file mode 100644
index 953f80d38..000000000
--- a/packages/console/src/pages/Organizations/Guide/Step1/index.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import { Theme } from '@logto/schemas';
-import classNames from 'classnames';
-import { useTranslation } from 'react-i18next';
-
-import OrganizationFeatureDark from '@/assets/icons/organization-feature-dark.svg';
-import OrganizationFeature from '@/assets/icons/organization-feature.svg';
-import PermissionFeatureDark from '@/assets/icons/permission-feature-dark.svg';
-import PermissionFeature from '@/assets/icons/permission-feature.svg';
-import workflowImage from '@/assets/images/organization-workflow.webp';
-import Card from '@/ds-components/Card';
-import useTheme from '@/hooks/use-theme';
-
-import * as styles from './index.module.scss';
-
-const icons = {
- [Theme.Light]: { OrganizationIcon: OrganizationFeature, PermissionIcon: PermissionFeature },
- [Theme.Dark]: {
- OrganizationIcon: OrganizationFeatureDark,
- PermissionIcon: PermissionFeatureDark,
- },
-};
-
-function Step1() {
- const { t } = useTranslation(undefined, { keyPrefix: 'admin_console.organizations.guide' });
- const theme = useTheme();
- const { OrganizationIcon, PermissionIcon } = icons[theme];
-
- return (
-