mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
glossary entry style change and editing feature fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user