We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c11d59c commit 003d550Copy full SHA for 003d550
src/frontend/apps/impress/src/features/docs/docs-grid/components/DocsGrid.tsx
@@ -46,12 +46,11 @@ export const DocsGrid = ({
46
void fetchNextPage();
47
};
48
49
- const title =
50
- target === DocDefaultFilter.MY_DOCS
51
- ? t('My docs')
52
- : target === DocDefaultFilter.SHARED_WITH_ME
53
- ? t('Shared with me')
54
- : t('All docs');
+ const title = {
+ [DocDefaultFilter.MY_DOCS]: t('My docs'),
+ [DocDefaultFilter.SHARED_WITH_ME]: t('Shared with me'),
+ [DocDefaultFilter.ALL_DOCS]: t('All docs'),
+ }[target]
55
56
return (
57
<Box
0 commit comments