Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
import DateCell from "~/components/ui/dates/DateCell";
|
||||
import { RowWithCreatedBy } from "~/utils/db/entities/rows.db.server";
|
||||
import { DateDisplay } from "~/utils/shared/DateUtils";
|
||||
import RowCreatedByBadge from "./RowCreatedByBadge";
|
||||
|
||||
interface Props {
|
||||
row: RowWithCreatedBy;
|
||||
by?: { withEmail?: boolean };
|
||||
date?: { displays?: DateDisplay[] };
|
||||
}
|
||||
export default function RowCreatedBadge({ row, by = { withEmail: true }, date = { displays: ["ymd"] } }: Props) {
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
{date && <DateCell displays={date.displays} date={row.createdAt} />}
|
||||
{by && <RowCreatedByBadge row={row} withEmail={by.withEmail} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user