Landing page improvements and various supporting improvements

This commit is contained in:
Luke Channings
2023-10-23 22:20:47 +01:00
parent 836267aa56
commit c4773dc904
105 changed files with 1831 additions and 780 deletions

View File

@ -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,