mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
interface: disable clicking notes if they are pending and gray them out
This commit is contained in:
parent
b2759b9f36
commit
b4430e1e1b
@ -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%'
|
||||
|
Loading…
Reference in New Issue
Block a user