重构对于Scheme类型的展示。
This commit is contained in:
@@ -5,6 +5,7 @@ import { useAtomValue } from 'jotai';
|
||||
import { isEmpty, isEqual } from 'lodash-es';
|
||||
import { useMemo } from 'react';
|
||||
import { Link, useNavigate, useParams } from 'react-router-dom';
|
||||
import { SchemeSign } from '../../components/SchemeSign';
|
||||
import { activeSchemeAtom, useSchemeList } from '../../stores/schemes';
|
||||
import styles from './SchemeList.module.css';
|
||||
|
||||
@@ -35,6 +36,7 @@ function SchemeItem({ item }: SchemeItemProps) {
|
||||
onClick={() => navigate(item.id)}>
|
||||
<div className={styles.name}>{item.name}</div>
|
||||
<div className={styles.status}>
|
||||
<SchemeSign scheme={item.type} short />
|
||||
<div className={styles.create_time}>
|
||||
created at {dayjs(item.createdAt).format('YYYY-MM-DD')}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user