mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-24 13:56:39 +00:00
simplify idp create selector
This commit is contained in:
@@ -331,29 +331,24 @@ export default function Page() {
|
|||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
</SettingsSectionForm>
|
</SettingsSectionForm>
|
||||||
</SettingsSectionBody>
|
|
||||||
</SettingsSection>
|
|
||||||
|
|
||||||
<SettingsSection>
|
<div>
|
||||||
<SettingsSectionHeader>
|
<div className="mb-2">
|
||||||
<SettingsSectionTitle>
|
<span className="text-sm font-medium">
|
||||||
{t("idpType")}
|
{t("idpType")}
|
||||||
</SettingsSectionTitle>
|
</span>
|
||||||
<SettingsSectionDescription>
|
</div>
|
||||||
{t("idpTypeDescription")}
|
<StrategySelect
|
||||||
</SettingsSectionDescription>
|
options={providerTypes}
|
||||||
</SettingsSectionHeader>
|
defaultValue={form.getValues("type")}
|
||||||
<SettingsSectionBody>
|
onChange={(value) => {
|
||||||
<StrategySelect
|
handleProviderChange(
|
||||||
options={providerTypes}
|
value as "oidc" | "google" | "azure"
|
||||||
defaultValue={form.getValues("type")}
|
);
|
||||||
onChange={(value) => {
|
}}
|
||||||
handleProviderChange(
|
cols={3}
|
||||||
value as "oidc" | "google" | "azure"
|
/>
|
||||||
);
|
</div>
|
||||||
}}
|
|
||||||
cols={3}
|
|
||||||
/>
|
|
||||||
</SettingsSectionBody>
|
</SettingsSectionBody>
|
||||||
</SettingsSection>
|
</SettingsSection>
|
||||||
|
|
||||||
|
|||||||
@@ -208,27 +208,23 @@ export default function Page() {
|
|||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
</SettingsSectionForm>
|
</SettingsSectionForm>
|
||||||
</SettingsSectionBody>
|
|
||||||
</SettingsSection>
|
|
||||||
|
|
||||||
<SettingsSection>
|
<div>
|
||||||
<SettingsSectionHeader>
|
<div className="mb-2">
|
||||||
<SettingsSectionTitle>
|
<span className="text-sm font-medium">
|
||||||
{t("idpType")}
|
{t("idpType")}
|
||||||
</SettingsSectionTitle>
|
</span>
|
||||||
<SettingsSectionDescription>
|
</div>
|
||||||
{t("idpTypeDescription")}
|
|
||||||
</SettingsSectionDescription>
|
<StrategySelect
|
||||||
</SettingsSectionHeader>
|
options={providerTypes}
|
||||||
<SettingsSectionBody>
|
defaultValue={form.getValues("type")}
|
||||||
<StrategySelect
|
onChange={(value) => {
|
||||||
options={providerTypes}
|
form.setValue("type", value as "oidc");
|
||||||
defaultValue={form.getValues("type")}
|
}}
|
||||||
onChange={(value) => {
|
cols={3}
|
||||||
form.setValue("type", value as "oidc");
|
/>
|
||||||
}}
|
</div>
|
||||||
cols={3}
|
|
||||||
/>
|
|
||||||
</SettingsSectionBody>
|
</SettingsSectionBody>
|
||||||
</SettingsSection>
|
</SettingsSection>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user