Skip to content

Commit

Permalink
feat : diff table demo
Browse files Browse the repository at this point in the history
  • Loading branch information
elfarsif committed Aug 17, 2024
1 parent 16645d1 commit 7a7cdd7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion ui/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
config: {
repository: {
owner: 'frankfarsi',
name: 'project-symmetry-semantic-comparison-alpha'
name: 'symmetry'
},
prerelease: false,
draft: true
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "project_symmetry",
"productName": "symmetry",
"productName": "project_symmetry",
"version": "1.0.5",
"author": "Gerybox",
"description": "Cross language wikipedia article gap analysis tool",
Expand Down
33 changes: 18 additions & 15 deletions ui/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,25 @@ const Layout = () => {
};

return (
<Table>
<TableHeader>
<TableRow>
<TableHead className="w-1/3">Referenced Article</TableHead>
<TableHead>Original Article</TableHead>
<div>
<Table>
<TableHeader>
<TableRow>
<TableHead className="w-1/3">Referenced Article</TableHead>
<TableHead>Original Article</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{texts.map((text) => (
<TableRow className={getColorClass(text.suggestionType)} >
<TableCell className="font-medium">{text.reference}</TableCell>
<TableCell>{text.editing}</TableCell>
</TableRow>
</TableHeader>
<TableBody>
{texts.map((text) => (
<TableRow className={getColorClass(text.suggestionType)} >
<TableCell className="font-medium">{text.reference}</TableCell>
<TableCell>{text.editing}</TableCell>
</TableRow>
))}
</TableBody>
</Table>
))}
</TableBody>
</Table>

</div>

)
}
Expand Down

0 comments on commit 7a7cdd7

Please sign in to comment.