From db994d44199b89c4152a12dd676d0f0f92880fcc Mon Sep 17 00:00:00 2001 From: Yoseph Nikolas Kurnia Soenggoro Date: Sat, 12 Dec 2020 18:54:17 +0700 Subject: [PATCH] Initial change --- web/src/components/UserProfile/UserProfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/src/components/UserProfile/UserProfile.js b/web/src/components/UserProfile/UserProfile.js index 6267ac2..944203a 100644 --- a/web/src/components/UserProfile/UserProfile.js +++ b/web/src/components/UserProfile/UserProfile.js @@ -2,12 +2,12 @@ import { useState, useEffect } from 'react' import { useAuth } from '@redwoodjs/auth' import { navigate, routes } from '@redwoodjs/router' import Editor from 'rich-markdown-editor' - import ImageUploader from 'src/components/ImageUploader' import Button from 'src/components/Button' import ProfileTextInput from 'src/components/ProfileTextInput' +import PartsCell from 'src/components/PartsCell' -const UserProfile = ({ user, isEditable, loading, onSave, error }) => { +const UserProfile = ({ user, isEditable, loading, onSave, error, parts }) => { const { currentUser } = useAuth() const canEdit = currentUser?.sub === user.id useEffect(() => { @@ -91,6 +91,10 @@ const UserProfile = ({ user, isEditable, loading, onSave, error }) => { /> +
+

Parts:

+ +
)