v2.3.1
This commit is contained in:
13
demos/custom/NameAndDateCell.jsx
Normal file
13
demos/custom/NameAndDateCell.jsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useMemo } from 'react';
|
||||
import './NameAndDateCell.css';
|
||||
|
||||
export default function NameAndDateCell({ row }) {
|
||||
const date = useMemo(() => row.start.toLocaleDateString(), [row.start]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="wx-4qJ64Gcp text">{row.text}</div>
|
||||
<div className="wx-4qJ64Gcp date">{date}</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user