Skip to content

Commit

Permalink
use modelRoutes.podman in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jgresham committed Jul 30, 2024
1 parent 54c9096 commit 7a356b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renderer/Presentational/SidebarWrapper/SidebarWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
useGetIsPodmanRunningQuery,
useGetPodmanDetailsQuery,
} from '../../state/settingsService';
import { modalRoutes } from '../ModalManager/modalUtils.js';
import Sidebar from '../Sidebar/Sidebar';

export interface SidebarWrapperProps {
Expand Down Expand Up @@ -61,7 +62,7 @@ export const SidebarWrapper = forwardRef<HTMLDivElement>((_, ref) => {
setModalState({
isModalOpen: true,
screen: {
route: 'podman',
route: modalRoutes.podman,
type: 'modal',
data: { view: 'update' },
},
Expand Down Expand Up @@ -90,7 +91,7 @@ export const SidebarWrapper = forwardRef<HTMLDivElement>((_, ref) => {
setModalState({
isModalOpen: true,
screen: {
route: 'podman',
route: modalRoutes.podman,
type: 'modal',
},
}),
Expand Down

0 comments on commit 7a356b5

Please sign in to comment.