glossary entry style change and editing feature fix

This commit is contained in:
strasmus1
2026-04-20 12:23:05 +00:00
parent 26492e0701
commit 7881c89626
2 changed files with 8 additions and 8 deletions
@@ -79,10 +79,11 @@ export default function CreateGlossaryEntry() {
? `/admin/glossary?id=${entryId}`
: "/admin/glossary";
const res = await makeRequest(url, {
method,
body: { word, word_definition: wordDefinition },
});
const res = await makeRequest(
url,
{ word, word_definition: wordDefinition },
{ method }
);
if (res.status === 200) {
router.push("/admin/glossary");
@@ -4,11 +4,10 @@
}
.glossaryWord {
text-decoration: none;
text-decoration: underline;
cursor: pointer;
color: var(--primary4);
font-weight: 600;
box-shadow: inset 0 -2px 0 var(--primary4);
color: rgb(155, 155, 155);
font-weight: bold;
transition: color 0.2s ease, background-color 0.2s ease;
}