mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
refactor(console): reorg connector creation modal (#4438)
refactor(console): reorg connector create modal
This commit is contained in:
parent
9e606d65a7
commit
9995154832
2 changed files with 16 additions and 9 deletions
|
@ -1,10 +1,17 @@
|
|||
@use '@/scss/underscore' as _;
|
||||
|
||||
.platforms {
|
||||
margin-top: _.unit(6);
|
||||
padding: _.unit(4) _.unit(6);
|
||||
background: var(--color-bg-layer-2);
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: _.unit(3);
|
||||
margin-top: _.unit(4);
|
||||
|
||||
.title {
|
||||
font: var(--font-label-2);
|
||||
margin-bottom: _.unit(3);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,6 +144,13 @@ function CreateConnectorForm({ onClose, isOpen: isFormOpen, type }: Props) {
|
|||
size={radioGroupSize}
|
||||
onChange={handleGroupChange}
|
||||
/>
|
||||
{activeGroup && (
|
||||
<PlatformSelector
|
||||
connectorGroup={activeGroup}
|
||||
connectorId={activeFactoryId}
|
||||
onConnectorIdChange={setActiveFactoryId}
|
||||
/>
|
||||
)}
|
||||
{standardGroups.length > 0 && (
|
||||
<>
|
||||
<div className={styles.standardLabel}>
|
||||
|
@ -159,13 +166,6 @@ function CreateConnectorForm({ onClose, isOpen: isFormOpen, type }: Props) {
|
|||
/>
|
||||
</>
|
||||
)}
|
||||
{activeGroup && (
|
||||
<PlatformSelector
|
||||
connectorGroup={activeGroup}
|
||||
connectorId={activeFactoryId}
|
||||
onConnectorIdChange={setActiveFactoryId}
|
||||
/>
|
||||
)}
|
||||
</ModalLayout>
|
||||
</Modal>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue