Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit d62abb9

Browse files
committed
📦 NEW: Custom fields component
1 parent ec97576 commit d62abb9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

components/custom-fields.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import PropTypes from 'prop-types'
2+
3+
export default function CustomFields({customFields}) {
4+
return (
5+
<div className="max-w-2xl mx-auto">
6+
<h3 className="mt-8 text-lg font-bold">What I&apos;m Into</h3>
7+
{customFields.book && <p className="mt-3">Book: {customFields.book}</p>}
8+
{customFields.music && (
9+
<p className="mt-3">Music: {customFields.music}</p>
10+
)}
11+
{customFields.television && (
12+
<p className="mt-3">Television: {customFields.television}</p>
13+
)}
14+
</div>
15+
)
16+
}
17+
18+
CustomFields.propTypes = {
19+
customFields: PropTypes.object
20+
}

0 commit comments

Comments
 (0)