Skip to content

Commit

Permalink
update code based on pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
garyjzhao committed Dec 10, 2024
1 parent 0650ed9 commit 1b96257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 8 additions & 5 deletions src/features/ModelPlan/ModelToOperations/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import useMessage from 'hooks/useMessage';
import MTOModal from '../_components/FormModal';
import MTOStatusBanner from '../_components/StatusBanner';
import MTOTable from '../_components/Table';
import MTOTableActions from '../_components/Table/Actions';

export type MTOOption = 'milestones' | 'systems-and-solutions';

Expand Down Expand Up @@ -78,10 +79,7 @@ const MTOHome = () => {
]}
/>

{
// !isModalOpen &&
message && <Expire delay={45000}>{message}</Expire>
}
{message && <Expire delay={45000}>{message}</Expire>}

<Grid row className="margin-bottom-2">
<Grid desktop={{ col: 9 }}>
Expand Down Expand Up @@ -184,7 +182,12 @@ const MTOHome = () => {
</div>
)}

{currentView === 'milestones' && <MTOTable />}
{currentView === 'milestones' && (
<>
<MTOTableActions />
<MTOTable />
</>
)}
</div>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { getHeaderSortIcon } from 'utils/tableSort';

import MTOOptionsPanel from '../OptionPanel';

import MTOTableActions from './Actions';
import {
ActionMenu,
CategoryType,
Expand Down Expand Up @@ -493,7 +492,6 @@ const MTOTable = () => {

return (
<>
<MTOTableActions />
<DndProvider backend={HTML5Backend}>
<div
className="display-block"
Expand Down

0 comments on commit 1b96257

Please sign in to comment.