This commit is contained in:
parent
406429cbb5
commit
8dd6acfab7
1 changed files with 10 additions and 9 deletions
|
@ -3,10 +3,7 @@ import { WorkLink } from "../mod.ts";
|
|||
import { renderDate } from "../../../render.ts";
|
||||
import { CHRONOLOGICAL_WORKS } from "../data.ts";
|
||||
import { RoleList } from "./RoleList.ts";
|
||||
|
||||
const tr = E.bind(null, "tr", []);
|
||||
const td = E.bind(null, "td", []);
|
||||
const th = E.bind(null, "th", []);
|
||||
import { TechnologyList } from "./TechnologyList.ts";
|
||||
|
||||
export type ChronologicalWorksTableTranslations = Readonly<
|
||||
Record<
|
||||
|
@ -20,6 +17,10 @@ export type ChronologicalWorksTableTranslations = Readonly<
|
|||
>
|
||||
>;
|
||||
|
||||
const tr = E.bind(null, "tr", []);
|
||||
const td = E.bind(null, "td", []);
|
||||
const th = E.bind(null, "th", []);
|
||||
|
||||
export const ChronologicalWorksTable = (
|
||||
i18n: ChronologicalWorksTableTranslations,
|
||||
): AnyNode =>
|
||||
|
@ -37,17 +38,17 @@ export const ChronologicalWorksTable = (
|
|||
E(
|
||||
"tbody",
|
||||
[],
|
||||
CHRONOLOGICAL_WORKS.map((work) => {
|
||||
return tr([
|
||||
CHRONOLOGICAL_WORKS.map((work) =>
|
||||
tr([
|
||||
td([WorkLink(work)]),
|
||||
td(work.description),
|
||||
td([RoleList(work.roles)]),
|
||||
td(work.technologies.join(", ")),
|
||||
td([TechnologyList(work.technologies)]),
|
||||
td(renderDate(work.startDate)),
|
||||
td(
|
||||
work.endDate ? renderDate(work.endDate) : work.status,
|
||||
),
|
||||
]);
|
||||
}),
|
||||
])
|
||||
),
|
||||
),
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue