redirecter for ao3 that adds opengraph metadata

update select values

Changed files
+6 -6
pages
+6 -6
pages/Generator.jsx
···
<div class="input-field">
<label htmlFor="theme">Theme</label>
<select name="theme" id="theme" onChange={e => setTheme(e.target.value)}>
-
{Object.keys(themes).map((th) => {
+
{Object.entries(themes).map((th) => {
return (
-
<option value={th}>{themes[th]}</option>
+
<option value={th[0]}>{th[1]}</option>
)
})}
</select>
···
<div class="input-field">
<label htmlFor="baseFont">Base Font</label>
<select name="baseFont" id="baseFont" onChange={e => setTheme(e.target.value)}>
-
{Object.keys(baseFonts).sort().map((bf) => {
+
{Object.entries(baseFonts).sort().map((bf) => {
return (
-
<option value={bf}>{baseFonts[bf].displayName}</option>
+
<option value={bf[0]}>{bf[1]}</option>
)
})}
</select>
···
<div class="input-field">
<label htmlFor="titleFont">Title Font</label>
<select name="titleFont" id="titleFont" onChange={e => setTheme(e.target.value)}>
-
{Object.keys({...titleFonts, ...baseFonts}).sort().map((tf) => {
+
{Object.entries({...titleFonts, ...baseFonts}).sort().map((tf) => {
return (
-
<option value={tf}>{{...titleFonts, ...baseFonts}.displayName}</option>
+
<option value={tf[0]}>{tf[1]}</option>
)
})}
</select>