feat: modal style

This commit is contained in:
karishmas6
2024-10-25 00:11:22 +05:30
parent 7d37df74fe
commit 8acabc91ae

View File

@@ -64,13 +64,13 @@ const columns: readonly Column[] = [
// //format: (value: string) => value.toLocaleString('en-US'), // //format: (value: string) => value.toLocaleString('en-US'),
// }, // },
{ {
id: 'delete', id: 'settings',
label: 'Delete', label: 'Settings',
minWidth: 80, minWidth: 80,
}, },
{ {
id: 'settings', id: 'delete',
label: 'Settings', label: 'Delete',
minWidth: 80, minWidth: 80,
}, },
]; ];
@@ -291,7 +291,7 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
onPageChange={handleChangePage} onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage} onRowsPerPageChange={handleChangeRowsPerPage}
/> />
<GenericModal isOpen={isModalOpen} onClose={() => setModalOpen(false)}> <GenericModal isOpen={isModalOpen} onClose={() => setModalOpen(false)} modalStyle={modalStyle}>
<div style={{ padding: '20px' }}> <div style={{ padding: '20px' }}>
<Typography variant="h6" gutterBottom>Enter URL To Extract Data</Typography> <Typography variant="h6" gutterBottom>Enter URL To Extract Data</Typography>
<TextField <TextField
@@ -375,4 +375,16 @@ const SettingsButton = ({ handleSettings }: SettingsButtonProps) => {
<Settings /> <Settings />
</IconButton> </IconButton>
) )
} }
const modalStyle = {
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: '30%',
backgroundColor: 'background.paper',
p: 4,
height: 'fit-content',
display: 'block',
padding: '20px',
};