move free posts message about sub select

This commit is contained in:
keyan 2023-05-31 19:54:35 -05:00
parent 40b7fde621
commit 15850f0dbb
1 changed files with 1 additions and 1 deletions

View File

@ -18,10 +18,10 @@ export function PostForm ({ type, sub, children }) {
if (!type) { if (!type) {
return ( return (
<div className='align-items-center'> <div className='align-items-center'>
<SubSelect noForm sub={sub?.name} />
{me?.freePosts && me?.sats < 1 {me?.freePosts && me?.sats < 1
? <div className='text-center font-weight-bold mb-3 text-success'>{me.freePosts} free posts left</div> ? <div className='text-center font-weight-bold mb-3 text-success'>{me.freePosts} free posts left</div>
: null} : null}
<SubSelect noForm sub={sub?.name} />
<Link href={prefix + '/post?type=link'}> <Link href={prefix + '/post?type=link'}>
<Button variant='secondary'>link</Button> <Button variant='secondary'>link</Button>
</Link> </Link>