refactor(web): remove typescript
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Chip } from './style.ee';
|
||||
|
||||
import * as URLS from 'config/urls';
|
||||
import useTrialStatus from 'hooks/useTrialStatus.ee';
|
||||
|
||||
export default function TrialStatusBadge(): React.ReactElement {
|
||||
export default function TrialStatusBadge() {
|
||||
const data = useTrialStatus();
|
||||
|
||||
if (!data) return <React.Fragment />;
|
||||
|
||||
const { message, status } = data;
|
||||
|
||||
return (
|
||||
<Chip
|
||||
component={Link}
|
@@ -1,6 +1,5 @@
|
||||
import { styled } from '@mui/material/styles';
|
||||
import MuiChip, { chipClasses } from '@mui/material/Chip';
|
||||
|
||||
export const Chip = styled(MuiChip)`
|
||||
&.${chipClasses.root} {
|
||||
font-weight: 500;
|
||||
@@ -10,4 +9,4 @@ export const Chip = styled(MuiChip)`
|
||||
background: #fef3c7;
|
||||
color: #78350f;
|
||||
}
|
||||
` as typeof MuiChip;
|
||||
`;
|
Reference in New Issue
Block a user