feat(ui): move to React 18 and base for using shadcn/ui (#4174)
Co-authored-by: IbrahimCSAE <ibrahim.mdev@gmail.com>
This commit is contained in:
1 parent
72b63dcd6a
commit
70f2c797f4
153 files changed
+2973
-2043
No files matched your search
@@ -9,7 +9,11 @@ export enum showDialogOption {
|
||||
ShowOnceAndConfigure = 'configure',
|
||||
}
|
||||
|
||||
const InvestigationalUseDialog = ({ dialogConfiguration }) => {
|
||||
const InvestigationalUseDialog = ({
|
||||
dialogConfiguration = {
|
||||
option: showDialogOption.AlwaysShowDialog,
|
||||
},
|
||||
}) => {
|
||||
const { option, days } = dialogConfiguration;
|
||||
const [isHidden, setIsHidden] = useState(true);
|
||||
|
||||
@@ -97,13 +101,7 @@ InvestigationalUseDialog.propTypes = {
|
||||
dialogConfiguration: PropTypes.shape({
|
||||
option: PropTypes.oneOf(Object.values(showDialogOption)).isRequired,
|
||||
days: PropTypes.number,
|
||||
}).isRequired,
|
||||
};
|
||||
|
||||
InvestigationalUseDialog.defaultProps = {
|
||||
dialogConfiguration: {
|
||||
option: showDialogOption.AlwaysShowDialog,
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
export default InvestigationalUseDialog;
|
||||
Reference in new issue
Block a user