also fixed new link timing out bug
This commit is contained in:
parent
e39c999b34
commit
433cffd13b
|
@ -26,6 +26,7 @@ export function ManalinkCard(props: {
|
||||||
const { className, info, preview = false } = props
|
const { className, info, preview = false } = props
|
||||||
const { expiresTime, maxUses, uses, amount, message } = info
|
const { expiresTime, maxUses, uses, amount, message } = info
|
||||||
return (
|
return (
|
||||||
|
<Col>
|
||||||
<Col>
|
<Col>
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
@ -64,11 +65,12 @@ export function ManalinkCard(props: {
|
||||||
>
|
>
|
||||||
{formatMoney(amount)}
|
{formatMoney(amount)}
|
||||||
</div>
|
</div>
|
||||||
<div>{message}</div>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
<div className="text-md mx-4 mt-2 mb-4 text-gray-500">{message}</div>
|
||||||
|
</Col>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,11 +84,12 @@ export function ManalinkCardFromView(props: {
|
||||||
const [details, setDetails] = useState(false)
|
const [details, setDetails] = useState(false)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Col>
|
||||||
<Col
|
<Col
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'group z-10 rounded-lg drop-shadow-sm transition-all hover:drop-shadow-lg',
|
'group z-10 rounded-lg drop-shadow-sm transition-all hover:drop-shadow-lg',
|
||||||
className,
|
className,
|
||||||
link.slug === highlightedSlug ? 'animate-pulse' : ''
|
link.slug === highlightedSlug ? 'shadow-md shadow-indigo-400' : ''
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -149,9 +152,12 @@ export function ManalinkCardFromView(props: {
|
||||||
<DotsHorizontalIcon className="h-[24px] w-5" />
|
<DotsHorizontalIcon className="h-[24px] w-5" />
|
||||||
</button>
|
</button>
|
||||||
</Row>
|
</Row>
|
||||||
<div className="my-2 text-xs md:text-sm">{message || '\n\n'}</div>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Col>
|
</Col>
|
||||||
|
<div className="mx-4 mt-2 mb-4 text-xs text-gray-500 md:text-sm">
|
||||||
|
{message || ''}
|
||||||
|
</div>
|
||||||
|
</Col>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ export function CreateLinksButton(props: {
|
||||||
message: newManalink.message,
|
message: newManalink.message,
|
||||||
})
|
})
|
||||||
setHighlightedSlug(slug || '')
|
setHighlightedSlug(slug || '')
|
||||||
setTimeout(() => setHighlightedSlug(''), 3700)
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
@ -165,6 +164,7 @@ function CreateManalinkForm(props: {
|
||||||
<label className="label">Message</label>
|
<label className="label">Message</label>
|
||||||
<Textarea
|
<Textarea
|
||||||
placeholder={defaultMessage}
|
placeholder={defaultMessage}
|
||||||
|
maxLength={200}
|
||||||
className="input input-bordered resize-none"
|
className="input input-bordered resize-none"
|
||||||
autoFocus
|
autoFocus
|
||||||
value={newManalink.message}
|
value={newManalink.message}
|
||||||
|
|
|
@ -85,10 +85,10 @@ function ManalinksDisplay(props: {
|
||||||
|
|
||||||
if (unclaimedLinks.length === 0) {
|
if (unclaimedLinks.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<p className="text-gray-500">
|
||||||
You don't have any unclaimed manalinks. Send some more to spread the
|
You don't have any unclaimed manalinks. Send some more to spread the
|
||||||
wealth!
|
wealth!
|
||||||
</div>
|
</p>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
const [page, setPage] = useState(0)
|
const [page, setPage] = useState(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user