mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Quote is nullable, fix style issues in notebooks
This commit is contained in:
parent
af708d68a2
commit
53e5d9c6a0
6 changed files with 6 additions and 6 deletions
|
|
@ -256,7 +256,7 @@ export function MarkdownNote(props: MarkdownNote): JSX.Element {
|
|||
p: '10px',
|
||||
width: '100%',
|
||||
marginTop: '15px',
|
||||
color: '$thHighContrast',
|
||||
color: '#3D3D3D',
|
||||
bg: '#F5F5F5',
|
||||
'> *': {
|
||||
m: '0px',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export function HighlightView(props: HighlightViewProps): JSX.Element {
|
|||
const [isEditing, setIsEditing] = useState(false)
|
||||
|
||||
const lines = useMemo(
|
||||
() => props.highlight.quote.split('\n'),
|
||||
() => (props.highlight.quote || '').split('\n'),
|
||||
[props.highlight.quote]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -518,7 +518,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
|
|||
}
|
||||
|
||||
const copy = async () => {
|
||||
if (focusedHighlight) {
|
||||
if (focusedHighlight && focusedHighlight.quote) {
|
||||
if (window.AndroidWebKitMessenger) {
|
||||
window.AndroidWebKitMessenger.handleIdentifiableMessage(
|
||||
'writeToClipboard',
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ export function NotebookModal(props: NotebookModalProps): JSX.Element {
|
|||
top: '0px',
|
||||
height: '50px',
|
||||
p: '20px',
|
||||
bg: '$thBackground',
|
||||
bg: '$grayBg',
|
||||
zIndex: 10,
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export function HighlightItem(props: HighlightItemProps): JSX.Element {
|
|||
const [isEditing, setIsEditing] = useState(false)
|
||||
|
||||
const lines = useMemo(
|
||||
() => props.highlight.quote.split('\n'),
|
||||
() => (props.highlight.quote || '').split('\n'),
|
||||
[props.highlight.quote]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export type Highlight = {
|
|||
id: string
|
||||
type: HighlightType
|
||||
shortId: string
|
||||
quote: string
|
||||
quote?: string
|
||||
prefix?: string
|
||||
suffix?: string
|
||||
patch: string
|
||||
|
|
|
|||
Loading…
Reference in a new issue