Initial change

This commit is contained in:
Yoseph Nikolas Kurnia Soenggoro
2020-12-12 18:54:17 +07:00
parent b17dbbbc3c
commit db994d4419

View File

@@ -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 }) => {
/>
</div>
</div>
<div className="mt-10">
<h3 className="text-3xl text-gray-500 font-ropa-sans">Parts:</h3>
<PartsCell />
</div>
</section>
</>
)