wizard: add users to review step (HMS-4906)
This commit is contained in:
parent
5e4f20edf1
commit
6a5871bf14
3 changed files with 76 additions and 1 deletions
|
|
@ -68,6 +68,8 @@ import {
|
|||
selectLanguages,
|
||||
selectKeyboard,
|
||||
selectHostname,
|
||||
selectUserNameByIndex,
|
||||
selectUserPasswordByIndex,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
|
||||
import {
|
||||
|
|
@ -774,6 +776,41 @@ export const TimezoneList = () => {
|
|||
);
|
||||
};
|
||||
|
||||
export const UsersList = () => {
|
||||
const index = 0;
|
||||
const userNameSelector = selectUserNameByIndex(index);
|
||||
const userName = useAppSelector(userNameSelector);
|
||||
const userPasswordSelector = selectUserPasswordByIndex(index);
|
||||
const userPassword = useAppSelector(userPasswordSelector);
|
||||
|
||||
return (
|
||||
<TextContent>
|
||||
<TextList component={TextListVariants.dl}>
|
||||
<>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Username
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{userName ? userName : 'None'}
|
||||
</TextListItem>
|
||||
<TextListItem
|
||||
component={TextListItemVariants.dt}
|
||||
className="pf-v5-u-min-width"
|
||||
>
|
||||
Password
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{userPassword ? userPassword : 'None'}
|
||||
</TextListItem>
|
||||
</>
|
||||
</TextList>
|
||||
</TextContent>
|
||||
);
|
||||
};
|
||||
|
||||
export const LocaleList = () => {
|
||||
const languages = useAppSelector(selectLanguages);
|
||||
const keyboard = useAppSelector(selectKeyboard);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue