Skip to content

Commit

Permalink
34785 Progress
Browse files Browse the repository at this point in the history
- Added draft Mapped Data table
  • Loading branch information
johnphan96 committed Jan 20, 2025
1 parent aa2037f commit 7c2915f
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
61 changes: 61 additions & 0 deletions packages/dina-ui/components/molecular-analysis/DataPasteZone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,67 @@ export default function DataPasteZone({}: DataPasteZoneProps) {
</tbody>
</table>
</div>
<div
style={{
outlineColor: "black",
outline: "solid",
borderRadius: "5px"
}}
className="col-md-1"
>
{">>"}
</div>
<div className="col-md-5">
<FieldHeader name={"mappedData"} />
<table
style={{
width: "100%",
borderCollapse: "collapse",
marginTop: "20px"
}}
>
<thead>
<tr>
<th
style={{
border: "1px solid #ccc",
padding: "8px",
backgroundColor: "#f4f4f4"
}}
>
"Original"
</th>
<th
style={{
border: "1px solid #ccc",
padding: "8px",
backgroundColor: "#f4f4f4"
}}
>
"Mapped"
</th>
</tr>
</thead>
<tbody>
{tableData.slice(1).map((row, rowIndex) => (
<tr key={rowIndex}>
{row.map((cell, cellIndex) => (
<td
key={cellIndex}
style={{
border: "1px solid #ccc",
padding: "8px",
textAlign: "left"
}}
>
{cell}
</td>
))}
</tr>
))}
</tbody>
</table>
</div>
</div>
)}
</div>
Expand Down
3 changes: 2 additions & 1 deletion packages/dina-ui/intl/dina-ui-en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,5 +1182,6 @@ export const DINAUI_MESSAGES_ENGLISH = {
addButtonText: "Add",
removeButtonText: "Remove",
extractedData: "Extracted Data",
dataPasteZone: "Data Paste Zone"
dataPasteZone: "Data Paste Zone",
mappedData: "Mapped Data"
};

0 comments on commit 7c2915f

Please sign in to comment.