Wizard: Add Hostname expandable to Review step

This adds a new expandable to the Review step.
This commit is contained in:
regexowl 2024-12-11 16:07:10 +01:00 committed by Michal Gold
parent 73eaecc51e
commit dc24ba24e4
3 changed files with 62 additions and 2 deletions

View file

@ -67,6 +67,7 @@ import {
selectNtpServers,
selectLanguages,
selectKeyboard,
selectHostname,
} from '../../../../store/wizardSlice';
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
import {
@ -803,6 +804,26 @@ export const LocaleList = () => {
);
};
export const HostnameList = () => {
const hostname = useAppSelector(selectHostname);
return (
<TextContent>
<TextList component={TextListVariants.dl}>
<TextListItem
component={TextListItemVariants.dt}
className="pf-v5-u-min-width"
>
Hostname
</TextListItem>
<TextListItem component={TextListItemVariants.dd}>
{hostname ? hostname : 'None'}
</TextListItem>
</TextList>
</TextContent>
);
};
export const FirstBootList = () => {
const isFirstbootEnabled = !!useAppSelector(selectFirstBootScript);