dont need to convert to const based to make it extendable
This commit is contained in:
parent
1362d8c827
commit
fa74b0f438
|
@ -1,4 +1,4 @@
|
|||
import React, { FC } from 'react';
|
||||
import React from 'react';
|
||||
import constants from 'utils/strings/constants';
|
||||
import {
|
||||
Breakpoint,
|
||||
|
@ -43,11 +43,11 @@ type Props = React.PropsWithChildren<
|
|||
}
|
||||
>;
|
||||
|
||||
const MessageDialog: FC<Props> = ({
|
||||
export default function MessageDialog({
|
||||
attributes,
|
||||
children,
|
||||
...props
|
||||
}: Props) => {
|
||||
}: Props) {
|
||||
if (!attributes) {
|
||||
return <Dialog open={false} />;
|
||||
}
|
||||
|
@ -116,6 +116,4 @@ const MessageDialog: FC<Props> = ({
|
|||
)}
|
||||
</Dialog>
|
||||
);
|
||||
};
|
||||
|
||||
export default MessageDialog;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue