refactor(web): remove typescript
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
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 useFormatMessage from 'hooks/useFormatMessage';
|
||||
|
||||
|
||||
export default function TrialOverAlert() {
|
||||
const formatMessage = useFormatMessage();
|
||||
const trialStatus = useTrialStatus();
|
||||
|
||||
if (!trialStatus || !trialStatus.over) return <React.Fragment />;
|
||||
|
||||
return (
|
||||
<Alert
|
||||
severity="error"
|
||||
@@ -24,7 +19,7 @@ export default function TrialOverAlert() {
|
||||
>
|
||||
<Typography variant="subtitle2" sx={{ lineHeight: 1.5 }}>
|
||||
{formatMessage('trialOverAlert.text', {
|
||||
link: generateInternalLink(URLS.SETTINGS_PLAN_UPGRADE)
|
||||
link: generateInternalLink(URLS.SETTINGS_PLAN_UPGRADE),
|
||||
})}
|
||||
</Typography>
|
||||
</Alert>
|
Reference in New Issue
Block a user