Skip to content

Commit 7f5e521

Browse files
authored
HyperLEDA/db_app#392: remove uploading mapping (#44)
1 parent ba8f426 commit 7f5e521

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

src/pages/TableDetails.tsx

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { Badge } from "../components/ui/Badge";
1717
import { Link } from "../components/core/Link";
1818
import { Loading } from "../components/core/Loading";
1919
import { ErrorPage } from "../components/ui/ErrorPage";
20-
import { getResource } from "../resources/resources";
2120
import { useDataFetching } from "../hooks/useDataFetching";
2221
import { backendClient } from "../clients/config";
2322

@@ -119,42 +118,6 @@ function TableMeta(props: TableMetaProps): ReactElement {
119118
);
120119
}
121120

122-
interface MarkingRulesProps {
123-
table: GetTableResponse;
124-
}
125-
126-
function renderCatalog(catalog: CellPrimitive): ReactElement {
127-
return <span>{getResource(`catalog.${String(catalog)}`).Title}</span>;
128-
}
129-
130-
function MarkingRules(props: MarkingRulesProps): ReactElement {
131-
const columns: Column[] = [
132-
{ name: "Catalog", renderCell: renderCatalog },
133-
{ name: "Parameter" },
134-
{ name: "Column name", renderCell: renderColumnName },
135-
];
136-
137-
const values: Record<string, CellPrimitive>[] = [];
138-
139-
props.table.marking_rules.forEach((rules) => {
140-
for (const key in rules.columns) {
141-
values.push({
142-
Catalog: rules.catalog,
143-
Parameter: key,
144-
"Column name": rules.columns[key],
145-
});
146-
}
147-
});
148-
149-
return (
150-
<CommonTable columns={columns} data={values} className="pb-5">
151-
<h2 className="text-2xl font-bold">
152-
Mapping of columns to catalog values for marking of records
153-
</h2>
154-
</CommonTable>
155-
);
156-
}
157-
158121
interface CrossmatchStatsProps {
159122
table: GetTableResponse;
160123
tableName: string;
@@ -295,7 +258,6 @@ export function TableDetailsPage(): ReactElement {
295258
return (
296259
<>
297260
<TableMeta tableName={tableName ?? ""} table={payload} />
298-
<MarkingRules table={payload} />
299261
<CrossmatchStats
300262
table={payload}
301263
tableName={tableName ?? ""}

0 commit comments

Comments
 (0)