{
- const selectionValue = selection;
- setSelectedPersona(selectionValue);
- if (selectionValue === PersonaKey.ADMINISTRATION) {
- history.push(Paths.general);
- } else {
- history.push(Paths.applications);
+ value={selectedPersona}
+ options={personaOptions.map((value) => ({
+ value,
+ children: PersonaKey[value],
+ }))}
+ onChange={(value) => {
+ if (value !== selectedPersona) {
+ history.push(targetPath);
}
}}
/>
);
};
+
+export const MigrationSidebar = () => {
+ const { t } = useTranslation();
+ return (
+