File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
packages/app/src/app/pages/common/Modals Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1+ import React , { FunctionComponent } from 'react' ;
2+
13import { Alert } from 'app/components/Alert' ;
24import { useOvermind } from 'app/overmind' ;
3- import React , { FunctionComponent } from 'react' ;
5+
46import { permanentlyDeleteSandboxes } from '../../../Dashboard/queries' ;
57
6- const EmptyTrash : FunctionComponent = ( ) => {
8+ export const EmptyTrash : FunctionComponent = ( ) => {
79 const {
10+ actions : { modalClosed } ,
811 state : {
912 dashboard : { trashSandboxIds } ,
1013 } ,
11- actions : { modalClosed } ,
1214 } = useOvermind ( ) ;
15+
1316 return (
1417 < Alert
15- title = "Empty Trash"
1618 body = "Are you sure you want to permanently delete all the sandboxes in the trash?"
1719 onCancel = { ( ) => modalClosed ( ) }
1820 onConfirm = { async ( ) => {
1921 await permanentlyDeleteSandboxes ( trashSandboxIds ) ;
22+
2023 modalClosed ( ) ;
2124 } }
25+ title = "Empty Trash"
2226 />
2327 ) ;
2428} ;
25-
26- export default EmptyTrash ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import DeleteDeploymentModal from './DeleteDeploymentModal';
1313import DeleteProfileSandboxModal from './DeleteProfileSandboxModal' ;
1414import DeleteSandboxModal from './DeleteSandboxModal' ;
1515import DeploymentModal from './DeploymentModal' ;
16- import EmptyTrash from './EmptyTrash' ;
16+ import { EmptyTrash } from './EmptyTrash' ;
1717import ExportGitHubModal from './ExportGitHubModal' ;
1818import { FeedbackModal } from './FeedbackModal' ;
1919import { ForkServerModal } from './ForkServerModal' ;
You can’t perform that action at this time.
0 commit comments