feat: modal style
This commit is contained in:
@@ -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
|
||||||
@@ -376,3 +376,15 @@ const SettingsButton = ({ handleSettings }: SettingsButtonProps) => {
|
|||||||
</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',
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user