refactor(web): remove typescript
This commit is contained in:
19
packages/web/src/components/TrialStatusBadge/index.ee.jsx
Normal file
19
packages/web/src/components/TrialStatusBadge/index.ee.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
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() {
|
||||
const data = useTrialStatus();
|
||||
if (!data) return <React.Fragment />;
|
||||
const { message, status } = data;
|
||||
return (
|
||||
<Chip
|
||||
component={Link}
|
||||
to={URLS.SETTINGS_BILLING_AND_USAGE}
|
||||
clickable
|
||||
label={message}
|
||||
color={status}
|
||||
/>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user