1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

refactored boris components

This commit is contained in:
Fedor Katurov 2021-11-21 17:34:32 +07:00
parent df217b41f7
commit e071665561
6 changed files with 6 additions and 6 deletions

View file

@ -14,10 +14,10 @@ const stateLabels: Record<IGithubIssue['state'], string> = {
};
const BorisStatsGitCard: FC<IProps> = ({ data: { created_at, title, html_url, state } }) => {
if (!title || !created_at) return null;
const date = useMemo(() => getPrettyDate(created_at), [created_at]);
if (!title || !created_at) return null;
return (
<div className={styles.wrap}>
<div className={styles.time}>