diff --git a/components/questions.js b/components/questions.js new file mode 100644 index 0000000..c0b11ce --- /dev/null +++ b/components/questions.js @@ -0,0 +1,15 @@ +import Item from './inventory-item' + +const Questions = props => { + const { questions } = props + return ( +
+

Questions

+
+ {questions.map(item => )} +
+
+ ) +} + +export default Questions diff --git a/pages/b5-costa-mccrae-300-ipip-neo-pi-r.js b/pages/b5-costa-mccrae-300-ipip-neo-pi-r.js index 1c60ebc..ec2a119 100644 --- a/pages/b5-costa-mccrae-300-ipip-neo-pi-r.js +++ b/pages/b5-costa-mccrae-300-ipip-neo-pi-r.js @@ -1,9 +1,9 @@ import { useEffect, useState } from 'react' import { getInfo, getChoices, getQuestions } from '@alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r' import Instructions from '../components/instructions' -import Item from '../components/inventory-item' import Choices from '../components/choices' import Dropdown from '../components/dropdown-menu' +import Questions from '../components/questions' const FileSaver = require('file-saver') const name = 'b5-costa-mccrae-300-ipip-neo-pi-r' const description = 'Big Five Costa and McCrae\'s 300 IPIP-NEO-PI-R items' @@ -51,18 +51,6 @@ const Details = () => { } } - const Questions = props => { - const { questions } = props - return ( -
-

Questions

-
- {questions.map(item => )} -
-
- ) - } - const Button = () => { return (