refactor(web): remove typescript

This commit is contained in:
Ali BARIN
2024-02-27 15:23:23 +00:00
parent 636870a075
commit b3ae2d2748
337 changed files with 2067 additions and 4997 deletions

View File

@@ -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}

View File

@@ -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;
`;