Skip to content

Commit

Permalink
chore: make overwrite profile modal destructive
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebofill committed Jan 10, 2024
1 parent 0028610 commit 041cde1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/modals/TabProfileModals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TabMasterContextProvider } from "../../state/TabMasterContext";
import { TabProfileModalStyles } from "../styles/TabProfileModalStyles";
import { TabListLabel } from '../TabListLabel';
import { ScrollableWindow } from '../generic/ScrollableWindow';
import { DestructiveModal } from '../generic/DestructiveModal';

export interface CreateTabProfileModalProps {
tabMasterManager: TabMasterManager,
Expand Down Expand Up @@ -70,7 +71,7 @@ export const OverwriteTabProfileModal: VFC<OverwriteTabProfileModalProps> = ({ p
<TabMasterContextProvider tabMasterManager={tabMasterManager}>
<TabProfileModalStyles />
<div className="tab-master-tab-profile-modal-scope">
<ConfirmModal
<DestructiveModal
strTitle={`Overwriting Profile: ${profileName}`}
onOK={() => {
tabMasterManager.tabProfileManager?.write(profileName, visibleTabsList.map(tabContainer => tabContainer.id));
Expand Down Expand Up @@ -109,7 +110,7 @@ export const OverwriteTabProfileModal: VFC<OverwriteTabProfileModalProps> = ({ p
</ScrollableWindow>
</div>
</div>
</ConfirmModal>
</DestructiveModal>
</div>
</TabMasterContextProvider>
);
Expand Down

0 comments on commit 041cde1

Please sign in to comment.