Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
more of same, cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
mapachurro committed Apr 16, 2024
1 parent 0d3e876 commit 2b0d101
Show file tree
Hide file tree
Showing 6 changed files with 405 additions and 405 deletions.
2 changes: 1 addition & 1 deletion data/exportTerms.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fs.readFile('consensys-termbase.json', 'utf8', (err, data) => {
term: englishTerm,
phonetic: '', // You may need to update this if phonetic is available in the JSON
partOfSpeech: '', // You may need to fill this later
description: termData['Definition'], // Using 'Definition' field as description
definition: termData['Definition'], // Using 'Definition' field as definition
termCategory: termData['Term category'] || '', // Using 'Term category' field if available
i18n: {},
};
Expand Down
2 changes: 1 addition & 1 deletion src/Term.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
width: fit-content;
}

.description {
.definition {
line-height: 1.4rem;
}
4 changes: 2 additions & 2 deletions src/termStruct.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "./Term.css";

function Term({ word, partOfSpeech, phonetic, description }) {
function Term({ word, partOfSpeech, phonetic, definition }) {
return (
<div className="Definition">
<div className="declaration">
Expand All @@ -9,7 +9,7 @@ function Term({ word, partOfSpeech, phonetic, description }) {
[{phonetic}] {partOfSpeech}
</div>
</div>
<div className="description">{description}</div>
<div className="definition">{definition}</div>
</div>
);
}
Expand Down
Loading

0 comments on commit 2b0d101

Please sign in to comment.