Landing page improvements and various supporting improvements
This commit is contained in:
@ -40,7 +40,7 @@ type NoteSectionProps = {
|
||||
|
||||
export function ArticleNotes(props: NoteSectionProps): JSX.Element {
|
||||
const saveText = useCallback(
|
||||
(text) => {
|
||||
(text: string) => {
|
||||
props.saveText(text)
|
||||
},
|
||||
[props]
|
||||
@ -78,7 +78,7 @@ export function HighlightViewNote(props: HighlightViewNoteProps): JSX.Element {
|
||||
const [lastSaved, setLastSaved] = useState<Date | undefined>(undefined)
|
||||
|
||||
const saveText = useCallback(
|
||||
(text) => {
|
||||
(text: string) => {
|
||||
;(async () => {
|
||||
const success = await updateHighlightMutation({
|
||||
annotation: text,
|
||||
|
||||
Reference in New Issue
Block a user