Initial change
This commit is contained in:
@@ -2,12 +2,12 @@ import { useState, useEffect } from 'react'
|
|||||||
import { useAuth } from '@redwoodjs/auth'
|
import { useAuth } from '@redwoodjs/auth'
|
||||||
import { navigate, routes } from '@redwoodjs/router'
|
import { navigate, routes } from '@redwoodjs/router'
|
||||||
import Editor from 'rich-markdown-editor'
|
import Editor from 'rich-markdown-editor'
|
||||||
|
|
||||||
import ImageUploader from 'src/components/ImageUploader'
|
import ImageUploader from 'src/components/ImageUploader'
|
||||||
import Button from 'src/components/Button'
|
import Button from 'src/components/Button'
|
||||||
import ProfileTextInput from 'src/components/ProfileTextInput'
|
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 { currentUser } = useAuth()
|
||||||
const canEdit = currentUser?.sub === user.id
|
const canEdit = currentUser?.sub === user.id
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -91,6 +91,10 @@ const UserProfile = ({ user, isEditable, loading, onSave, error }) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="mt-10">
|
||||||
|
<h3 className="text-3xl text-gray-500 font-ropa-sans">Parts:</h3>
|
||||||
|
<PartsCell />
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user