Skip to content

Commit

Permalink
fix: sonar cloud issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Nov 3, 2024
1 parent cf06d17 commit d59d79f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions shared/components/CompleteInfoReminderDialog.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState, forwardRef, useId, useEffect, useRef } from 'react';
import { forwardRef, useId } from 'react';
import Link from 'next/link';
import { useSelector } from 'react-redux';
import {
Dialog,
DialogTitle,
Expand All @@ -24,14 +23,6 @@ export default function CompleteInfoReminderDialog({ isOpen, onClose }) {

return (
<Dialog
keepMounted
scroll="body"
fullScreen={isMobileScreen}
open={isOpen}
onClose={onClose}
aria-labelledby={titleId}
aria-describedby={descriptionId}
TransitionComponent={TransitionSlide}
sx={{
'.MuiPaper-root': {
marginTop: isMobileScreen ? 'calc(100vh - 580px)' : undefined,
Expand All @@ -45,6 +36,14 @@ export default function CompleteInfoReminderDialog({ isOpen, onClose }) {
borderRadius: '16px',
},
}}
keepMounted
scroll="body"
aria-labelledby={titleId}
onClose={onClose}
open={isOpen}
fullScreen={isMobileScreen}
TransitionComponent={TransitionSlide}
aria-describedby={descriptionId}
>
<DialogTitle
id={titleId}
Expand Down

0 comments on commit d59d79f

Please sign in to comment.