refactor: rewrite useUserTrial with RQ

This commit is contained in:
Rıdvan Akca
2024-03-13 17:34:55 +03:00
parent 3aa86eebf2
commit 925dd06432
8 changed files with 48 additions and 150 deletions

View File

@@ -1,14 +1,18 @@
import * as React from 'react';
import Alert from '@mui/material/Alert';
import Typography from '@mui/material/Typography';
import * as URLS from 'config/urls';
import { generateInternalLink } from 'helpers/translationValues';
import useTrialStatus from 'hooks/useTrialStatus.ee';
import useUserTrial from 'hooks/useUserTrial.ee';
import useFormatMessage from 'hooks/useFormatMessage';
export default function TrialOverAlert() {
const formatMessage = useFormatMessage();
const trialStatus = useTrialStatus();
const trialStatus = useUserTrial();
if (!trialStatus || !trialStatus.over) return <React.Fragment />;
return (
<Alert
severity="error"