26 lines
1006 B
TypeScript
26 lines
1006 B
TypeScript
import React from 'react';
|
|
import { WebComponentProps } from 'oak-frontend-base';
|
|
import { EntityDict } from '../../oak-app-domain';
|
|
import { SmsConfig, EmailConfig, PfwConfig, MfwConfig, PwdConfig, NameConfig, OAuthConfig } from '../../entities/Passport';
|
|
export default function render(props: WebComponentProps<EntityDict, 'passport', true, {
|
|
passports: (EntityDict['passport']['OpSchema'] & {
|
|
appIdStr: string;
|
|
stateColor: string;
|
|
hasQrCodePrefix: boolean;
|
|
})[];
|
|
systemId: string;
|
|
systemName: string;
|
|
oauthOptions: {
|
|
label: string;
|
|
value: string;
|
|
}[];
|
|
}, {
|
|
updateConfig: (id: string, config: SmsConfig | EmailConfig | PfwConfig | MfwConfig | PwdConfig | NameConfig | OAuthConfig, path: string, value: any, type?: string) => void;
|
|
checkConfrim: () => {
|
|
id: string;
|
|
type: EntityDict['passport']['Schema']['type'];
|
|
tip: string;
|
|
}[];
|
|
myConfirm: (ids: string[]) => Promise<void>;
|
|
}>): React.JSX.Element;
|