Skip to content

Commit 5f8c39f

Browse files
Copilothotlong
andcommitted
Fix code review issues: remove stray backtick and add default case in switch
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 5066104 commit 5f8c39f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/site/app/components/PluginLoader.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export function PluginLoader({ plugins, children }: PluginLoaderProps) {
7676
return import('@object-ui/plugin-grid');
7777
case 'view':
7878
return import('@object-ui/plugin-view');
79+
default:
80+
console.warn(`Unknown plugin: ${plugin}`);
81+
return Promise.resolve();
7982
}
8083
});
8184

content/docs/plugins/plugin-calendar.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ npm install @object-ui/plugin-calendar
1414
```
1515

1616
<PluginLoader plugins={['calendar']}>
17-
```
1817

1918
## Overview
2019

0 commit comments

Comments
 (0)