Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix type errors

Abdullah Atta80186c1812b0
diff --git a/apps/web/src/components/properties/index.tsx b/apps/web/src/components/properties/index.tsx
index f071b69c3..54442312f 100644
--- a/apps/web/src/components/properties/index.tsx
+++ b/apps/web/src/components/properties/index.tsx
@@ -606,7 +606,7 @@ function Notebooks({ noteId }: { noteId: string }) {
renderItem={({ index }) => (
<ResolvedItem index={index} items={result.value} type="notebook">
{({ item, data }) => (
- <ListItemWrapper item={item} data={data} simplified />
+ <ListItemWrapper item={item} data={data} compact />
)}
</ResolvedItem>
)}
@@ -635,7 +635,7 @@ function Reminders({ noteId }: { noteId: string }) {
renderItem={({ index }) => (
<ResolvedItem index={index} items={result.value} type="reminder">
{({ item, data }) => (
- <ListItemWrapper item={item} data={data} simplified />
+ <ListItemWrapper item={item} data={data} compact />
)}
</ResolvedItem>
)}
diff --git a/apps/web/src/dialogs/note-linking-dialog.tsx b/apps/web/src/dialogs/note-linking-dialog.tsx
index f4653f59a..943eaf924 100644
--- a/apps/web/src/dialogs/note-linking-dialog.tsx
+++ b/apps/web/src/dialogs/note-linking-dialog.tsx
@@ -68,7 +68,7 @@ export const NoteLinkingDialog = DialogManager.register(
disabled: !selectedNote,
onClick: () =>
selectedNote
- ? props.onDone({
+ ? props.onClose({
title: selectedNote.title,
href: createInternalLink("note", selectedNote.id)
})
@@ -145,7 +145,7 @@ export const NoteLinkingDialog = DialogManager.register(
borderBottom: "1px solid var(--border)"
}}
onClick={() => {
- props.onDone({
+ props.onClose({
title: selectedNote.title,
href: createInternalLink("note", selectedNote.id, {
blockId: item.id
diff --git a/apps/web/src/dialogs/settings/components/themes-selector.tsx b/apps/web/src/dialogs/settings/components/themes-selector.tsx
index 56258f2c5..9eb96770d 100644
--- a/apps/web/src/dialogs/settings/components/themes-selector.tsx
+++ b/apps/web/src/dialogs/settings/components/themes-selector.tsx
@@ -190,9 +190,11 @@ function ThemesList() {
if (
await ThemeDetailsDialog.show({
- ...theme,
- totalInstalls: 0,
- previewColors: getPreviewColors(theme)
+ theme: {
+ ...theme,
+ totalInstalls: 0,
+ previewColors: getPreviewColors(theme)
+ }
})
) {
setCurrentTheme(theme);
@@ -266,7 +268,7 @@ function ThemeItem(props: ThemeItemProps) {
}
}}
onClick={async () => {
- if (await ThemeDetailsDialog.show(theme)) {
+ if (await ThemeDetailsDialog.show({ theme })) {
await setTheme(theme);
}
}}