21 lines
575 B
TypeScript
21 lines
575 B
TypeScript
import React from 'react';
|
|
import PwdUpdate from 'oak-general-business/es/components/user/password/update';
|
|
import { RowWithActions, WebComponentProps } from 'oak-frontend-base';
|
|
import { EntityDict } from '@project/oak-app-domain';
|
|
|
|
export default function Render(props: WebComponentProps<EntityDict, 'user', false, {
|
|
userId: string;
|
|
path: string;
|
|
}>) {
|
|
const { userId, path } = props.data;
|
|
|
|
if (userId && path) {
|
|
return (
|
|
<PwdUpdate
|
|
oakPath={path}
|
|
oakId={userId}
|
|
/>
|
|
);
|
|
}
|
|
return null;
|
|
} |