Attempt to at move app into app sub dir
This commit is contained in:
40
app/web/src/components/PartsOfUserCell/PartsOfUserCell.js
Normal file
40
app/web/src/components/PartsOfUserCell/PartsOfUserCell.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
|
||||
import Parts from 'src/components/Parts'
|
||||
|
||||
export const QUERY = gql`
|
||||
query PARTS_OF_USER($userName: String!) {
|
||||
parts(userName: $userName) {
|
||||
id
|
||||
title
|
||||
mainImage
|
||||
createdAt
|
||||
updatedAt
|
||||
user {
|
||||
image
|
||||
userName
|
||||
}
|
||||
Reaction {
|
||||
emote
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const Loading = () => <div>Loading...</div>
|
||||
|
||||
export const Empty = () => {
|
||||
return <div className="rw-text-center">No parts yet.</div>
|
||||
}
|
||||
|
||||
export const Success = ({
|
||||
parts,
|
||||
variables: { shouldFilterPartsWithoutImage },
|
||||
}) => {
|
||||
return (
|
||||
<Parts
|
||||
parts={parts}
|
||||
shouldFilterPartsWithoutImage={shouldFilterPartsWithoutImage}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user