feat: show remove integration even if no spreadsheets fetched
This commit is contained in:
@@ -161,6 +161,7 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I
|
|||||||
) : error ? (
|
) : error ? (
|
||||||
<Typography color="error">{error}</Typography>
|
<Typography color="error">{error}</Typography>
|
||||||
) : spreadsheets.length === 0 ? (
|
) : spreadsheets.length === 0 ? (
|
||||||
|
<>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
@@ -169,6 +170,15 @@ export const IntegrationSettingsModal = ({ isOpen, handleStart, handleClose }: I
|
|||||||
>
|
>
|
||||||
Fetch Google Spreadsheets
|
Fetch Google Spreadsheets
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant="outlined"
|
||||||
|
color="error"
|
||||||
|
onClick={removeIntegration}
|
||||||
|
style={{ marginTop: '15px' }}
|
||||||
|
>
|
||||||
|
Remove Integration
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<TextField
|
<TextField
|
||||||
|
|||||||
Reference in New Issue
Block a user