interface: disable clicking notes if they are pending and gray them out

This commit is contained in:
Logan Allen 2021-03-08 15:50:36 -06:00
parent b2759b9f36
commit b4430e1e1b

View File

@ -49,8 +49,10 @@ export function NotePreview(props: NotePreviewProps) {
const commColor = (props.unreads.graph?.[appPath]?.[`/${noteId}`]?.unreads ?? 0) > 0 ? 'blue' : 'gray';
return (
<Box width='100%'>
<Link to={url}>
<Box width='100%' opacity={post.pending ? '0.5' : '1'}>
<Link
to={post.pending ? '#' : url}
cursor={post.pending ? 'none' : 'pointer'}>
<Col
lineHeight='tall'
width='100%'