diff --git a/.eslintrc.js b/.eslintrc.js index dda5679..6d44a27 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,7 +18,7 @@ module.exports = { 'no-prototype-builtins': 'off', 'id-length': [ 'warn', - { exceptions: ['i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] }, + { exceptions: ['x', 'i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] }, ], }, root: true, diff --git a/src/components/layout.js b/src/components/layout.js index 11d49d6..71bf473 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -54,7 +54,7 @@ export default function Layout(props) { setSidebarOpen(window.innerWidth >= 700) }) }, []) - const snowflakeCount = (windowSize[0] + windowSize[1]) / 8 + const snowflakeCount = (windowSize[0] + windowSize[1]) / 26 return (
diff --git a/src/pages/addQuestion.js b/src/pages/addQuestion.js index 18f9b40..0f1e1cf 100644 --- a/src/pages/addQuestion.js +++ b/src/pages/addQuestion.js @@ -86,7 +86,7 @@ export default function AddQuestion() {
{ + onChange={(event) => { // TODO: handle JSON // try { // let newData = JSON.parse(e.target.value) @@ -181,7 +181,7 @@ export default function AddQuestion() { }) } - const renderStuff = (props) => { + const renderStuff = () => { return (
{form.quiz.map((q, i) => { @@ -194,9 +194,8 @@ export default function AddQuestion() {
) })} -
- + Új kérdés +
{isSubmitting ? (
@@ -235,20 +234,20 @@ export default function AddQuestion() { placeholder="Új tárgy neve..." type="text" className={styles.questionInput} - onChange={(e) => { + onChange={(event) => { setForm({ ...form, - subj: e.target.value, + subj: event.target.value, }) }} /> ) : (