mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
Merge branch 'release/0.15' into feat/jsonv-refactor
# Conflicts: # app/build.ts # app/package.json # app/src/App.ts # app/src/adapter/cloudflare/storage/StorageR2Adapter.ts # app/src/auth/authenticate/Authenticator.ts # app/src/auth/authenticate/strategies/PasswordStrategy.ts # app/src/data/entities/Entity.ts # app/src/data/fields/DateField.ts # app/src/data/server/query.ts # app/src/flows/flows/triggers/EventTrigger.ts # app/src/flows/tasks/presets/LogTask.ts # app/src/media/AppMedia.ts # app/src/modules/server/AppServer.ts # app/src/modules/server/SystemController.ts # app/vite.dev.ts # bun.lock
This commit is contained in:
@@ -124,7 +124,8 @@ const Icons = {
|
||||
};
|
||||
|
||||
const AdapterIcon = ({ type }: { type: string }) => {
|
||||
const Icon = Icons[type];
|
||||
// find icon whose name starts with type
|
||||
const Icon = Object.entries(Icons).find(([key]) => type.startsWith(key))?.[1];
|
||||
if (!Icon) return null;
|
||||
return <Icon />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user