issue-152 wasn't quiet solved correctly it showed all parts

on the user's profile instead of only their own parts
This commit is contained in:
Kurt Hutten
2020-12-13 13:41:46 +11:00
parent 6ce4031cae
commit 5dc14a6e5a
8 changed files with 118 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ 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'
import PartsOfUser from 'src/components/PartsOfUserCell'
const UserProfile = ({ user, isEditable, loading, onSave, error, parts }) => {
const { currentUser } = useAuth()
@@ -93,7 +93,7 @@ const UserProfile = ({ user, isEditable, loading, onSave, error, parts }) => {
</div>
<div className="mt-10">
<h3 className="text-3xl text-gray-500 font-ropa-sans">Parts:</h3>
<PartsCell />
<PartsOfUser userName={user?.userName} />
</div>
</section>
</>