mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 22:15:47 +03:00
interface: publish cursor is now using style
This commit is contained in:
parent
47abf00de7
commit
5a88f87182
@ -48,11 +48,14 @@ export function NotePreview(props: NotePreviewProps) {
|
|||||||
const snippet = getSnippet(body);
|
const snippet = getSnippet(body);
|
||||||
|
|
||||||
const commColor = (props.unreads.graph?.[appPath]?.[`/${noteId}`]?.unreads ?? 0) > 0 ? 'blue' : 'gray';
|
const commColor = (props.unreads.graph?.[appPath]?.[`/${noteId}`]?.unreads ?? 0) > 0 ? 'blue' : 'gray';
|
||||||
|
|
||||||
|
const cursorStyle = post.pending ? 'default' : 'pointer';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box width='100%' opacity={post.pending ? '0.5' : '1'}>
|
<Box width='100%' opacity={post.pending ? '0.5' : '1'}>
|
||||||
<Link
|
<Link
|
||||||
to={post.pending ? '#' : url}
|
to={post.pending ? '#' : url}
|
||||||
cursor={post.pending ? 'default' : 'pointer'}>
|
style={ { cursor: cursorStyle } }>
|
||||||
<Col
|
<Col
|
||||||
lineHeight='tall'
|
lineHeight='tall'
|
||||||
width='100%'
|
width='100%'
|
||||||
|
Loading…
Reference in New Issue
Block a user