Skip to content

Commit

Permalink
fix(existing): one
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Feb 29, 2024
1 parent 9a0bcd4 commit f022a2d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/custom/ChartDialog/ChartDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
import React from 'react';
import { Dialog } from '../../base';
import { DialogActions } from '../../base/DialogActions';
import { DialogContent } from '../../base/DialogContent';
import { DialogContentText } from '../../base/DialogContentText';
import { StyledDialog, StyledDialogTitle } from '../Dialog';
import { StyledDialogTitle } from '../Dialog';

interface ChartDialogProps {
open: boolean;
content: React.ReactNode;
title: string;
actions?: React.ReactNode;
onClose: () => void;
}

function StyledChartDialog({ open, content, title, actions }: ChartDialogProps): JSX.Element {
function StyledChartDialog({
open,
content,
title,
actions,
onClose
}: ChartDialogProps): JSX.Element {
return (
<StyledDialog fullWidth maxWidth="md" open={open}>
<Dialog open={open} onClose={onClose}>
<StyledDialogTitle>{title}</StyledDialogTitle>
<DialogContent>
<DialogContentText>{content}</DialogContentText>
</DialogContent>
<DialogActions>{actions}</DialogActions>
</StyledDialog>
</Dialog>
);
}

Expand Down

0 comments on commit f022a2d

Please sign in to comment.