diff --git a/.eslintrc.js b/.eslintrc.js index 6d44a27..f572f7a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,7 +18,7 @@ module.exports = { 'no-prototype-builtins': 'off', 'id-length': [ 'warn', - { exceptions: ['x', 'i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] }, + { exceptions: ['x', 'i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b', 'e'] }, ], }, root: true, diff --git a/.gitignore b/.gitignore index 1f18056..f9ef1ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules/ .next/ out/ - /.vs +public/ diff --git a/src/components/comments.js b/src/components/comments.js new file mode 100644 index 0000000..5323f09 --- /dev/null +++ b/src/components/comments.js @@ -0,0 +1,227 @@ +import React, { useState } from 'react' + +import ReactButton from './reactButton.js' +import Modal from './modal.js' + +import styles from './comments.module.css' + +function CommentInput({ onSubmit, onCancel }) { + const [val, setVal] = useState('') + return ( +
+