This commit is contained in:
k00b 2025-04-01 17:18:44 -05:00
parent e0bfc590b2
commit 2d51a5def9
4 changed files with 13 additions and 9 deletions

View File

@ -509,7 +509,7 @@ export default {
${whereClause( ${whereClause(
'"parentId" IS NULL', '"parentId" IS NULL',
'"Item"."deletedAt" IS NULL', '"Item"."deletedAt" IS NULL',
'"Item"."status" = \'ACTIVE\'', activeOrMine(me),
'created_at <= $1', 'created_at <= $1',
'"pinId" IS NULL', '"pinId" IS NULL',
subClause(sub, 4) subClause(sub, 4)

View File

@ -282,7 +282,7 @@ function InfoDropdownItem ({ item }) {
) )
} }
function PaymentInfo ({ item, disableRetry, setDisableRetry }) { export function PaymentInfo ({ item, disableRetry, setDisableRetry }) {
const { me } = useMe() const { me } = useMe()
const toaster = useToast() const toaster = useToast()
const retryCreateItem = useRetryCreateItem({ id: item.id }) const retryCreateItem = useRetryCreateItem({ id: item.id })

View File

@ -13,8 +13,9 @@ import { MEDIA_URL } from '@/lib/constants'
import { abbrNum } from '@/lib/format' import { abbrNum } from '@/lib/format'
import { Badge } from 'react-bootstrap' import { Badge } from 'react-bootstrap'
import SubPopover from './sub-popover' import SubPopover from './sub-popover'
import { PaymentInfo } from './item-info'
export default function ItemJob ({ item, toc, rank, children }) { export default function ItemJob ({ item, toc, rank, children, disableRetry, setDisableRetry }) {
const isEmail = string().email().isValidSync(item.url) const isEmail = string().email().isValidSync(item.url)
return ( return (
@ -78,6 +79,7 @@ export default function ItemJob ({ item, toc, rank, children }) {
<Link href={`/items/${item.id}/edit`} className='text-reset fw-bold'> <Link href={`/items/${item.id}/edit`} className='text-reset fw-bold'>
edit edit
</Link> </Link>
<PaymentInfo item={item} disableRetry={disableRetry} setDisableRetry={setDisableRetry} />
</>)} </>)}
</div> </div>
</div> </div>

View File

@ -112,7 +112,9 @@ function NoteHeader ({ color, children, big }) {
function NoteItem ({ item, ...props }) { function NoteItem ({ item, ...props }) {
return ( return (
<div> <div>
{item.title {item.isJob
? <ItemJob item={item} {...props} />
: item.title
? <Item item={item} itemClassName='pt-0' {...props} /> ? <Item item={item} itemClassName='pt-0' {...props} />
: ( : (
<RootProvider root={item.root}> <RootProvider root={item.root}>