diff --git a/src/components/animations/PageTransition.jsx b/src/components/animations/PageTransition.jsx index a6c890a..7471b65 100644 --- a/src/components/animations/PageTransition.jsx +++ b/src/components/animations/PageTransition.jsx @@ -51,6 +51,7 @@ const PageTransition = ({ children }) => { const location = useLocation() const prevLocation = useRef(location) const isNavigatingBack = useRef(false) + const nodeRef = useRef(null) useEffect(() => { const currentLevel = getRouteLevel(location.pathname) @@ -84,8 +85,10 @@ const PageTransition = ({ children }) => { enter: 50, exit: 50, }} + nodeRef={nodeRef} >
{ const [timeoutId, setTimeoutId] = useState(null) const [secondsLeftToCancel, setSecondsLeftToCancel] = useState(null) const [completedDate, setCompletedDate] = useState(null) - const [confirmModelConfig, setConfirmModelConfig] = useState({}) + const [confirmModelConfig, setConfirmModelConfig] = useState({ + isOpen: false, + }) const [chorePriority, setChorePriority] = useState(null) const [isDescriptionOpen, setIsDescriptionOpen] = useState(false) - const [timerActionConfig, setTimerActionConfig] = useState({}) + const [timerActionConfig, setTimerActionConfig] = useState({ isOpen: false }) const { data: circleMembersData, isLoading: isCircleMembersLoading } = useCircleMembers() const { data: userProfile } = useUserProfile() @@ -447,7 +449,7 @@ const ChoreView = () => { }} > {[ChoreStatus.ACTIVE, ChoreStatus.PAUSED].includes(chore.status) && ( - + { @@ -462,7 +464,7 @@ const ChoreView = () => { )} {infoCards.map((card, index) => ( - + { alignItems: 'center', justifyContent: 'center', p: 1, + width: '100%', }} - fullWidth variant='plain' > {chorePriority ? chorePriority.icon : }