interface: publish cursor is now using style

This commit is contained in:
Logan Allen 2021-03-08 16:06:07 -06:00
parent 47abf00de7
commit 5a88f87182

View File

@ -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%'