fix: React warning size of memo changing between renders

This commit is contained in:
Tom Moor
2021-10-26 00:20:32 -07:00
parent a33bac66e4
commit 1819920c04
2 changed files with 12 additions and 8 deletions

View File

@ -27,7 +27,7 @@ export default function useCommandBarActions(actions: Action[]) {
); );
useRegisterActions(registerable, [ useRegisterActions(registerable, [
...registerable.map((r) => r.id), registerable.map((r) => r.id).join(""),
location.pathname, location.pathname,
]); ]);
} }

View File

@ -8,7 +8,18 @@
"Development": "Development", "Development": "Development",
"Open document": "Open document", "Open document": "Open document",
"New document": "New document", "New document": "New document",
"Star": "Star",
"Unstar": "Unstar",
"Download": "Download",
"Download document": "Download document",
"Duplicate": "Duplicate",
"Duplicate document": "Duplicate document",
"Document duplicated": "Document duplicated",
"Print": "Print",
"Print document": "Print document",
"Import document": "Import document", "Import document": "Import document",
"Templatize": "Templatize",
"Create template": "Create template",
"Home": "Home", "Home": "Home",
"Search": "Search", "Search": "Search",
"Drafts": "Drafts", "Drafts": "Drafts",
@ -198,8 +209,6 @@
"Export": "Export", "Export": "Export",
"Integrations": "Integrations", "Integrations": "Integrations",
"Installation": "Installation", "Installation": "Installation",
"Unstar": "Unstar",
"Star": "Star",
"Previous page": "Previous page", "Previous page": "Previous page",
"Next page": "Next page", "Next page": "Next page",
"Could not import file": "Could not import file", "Could not import file": "Could not import file",
@ -218,7 +227,6 @@
"Sort in sidebar": "Sort in sidebar", "Sort in sidebar": "Sort in sidebar",
"Alphabetical sort": "Alphabetical sort", "Alphabetical sort": "Alphabetical sort",
"Manual sort": "Manual sort", "Manual sort": "Manual sort",
"Document duplicated": "Document duplicated",
"Document restored": "Document restored", "Document restored": "Document restored",
"Document unpublished": "Document unpublished", "Document unpublished": "Document unpublished",
"Document options": "Document options", "Document options": "Document options",
@ -227,15 +235,11 @@
"Unpin": "Unpin", "Unpin": "Unpin",
"Pin to collection": "Pin to collection", "Pin to collection": "Pin to collection",
"New nested document": "New nested document", "New nested document": "New nested document",
"Create template": "Create template",
"Duplicate": "Duplicate",
"Unpublish": "Unpublish", "Unpublish": "Unpublish",
"Permanently delete": "Permanently delete", "Permanently delete": "Permanently delete",
"Move": "Move", "Move": "Move",
"Enable embeds": "Enable embeds", "Enable embeds": "Enable embeds",
"Disable embeds": "Disable embeds", "Disable embeds": "Disable embeds",
"Download": "Download",
"Print": "Print",
"Move {{ documentName }}": "Move {{ documentName }}", "Move {{ documentName }}": "Move {{ documentName }}",
"Permanently delete {{ documentName }}": "Permanently delete {{ documentName }}", "Permanently delete {{ documentName }}": "Permanently delete {{ documentName }}",
"Export options": "Export options", "Export options": "Export options",