Skip to content

Commit

Permalink
Update Faiss icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ljupcovangelski committed Sep 8, 2023
1 parent 4cb61ff commit 919b099
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {ReactComponent as IbmWatsonAssistantAvatar} from 'assets/images/icons/ib
import {ReactComponent as RedisAvatar} from 'assets/images/icons/redisLogo.svg';
import {ReactComponent as PostgresAvatar} from 'assets/images/icons/postgresLogo.svg';
import {ReactComponent as FeastAvatar} from 'assets/images/icons/feastLogo.svg';
import {ReactComponent as MetaAvatar} from 'assets/images/icons/meta.svg';

import {Channel, Source} from 'model';
import styles from './index.module.scss';
Expand Down Expand Up @@ -98,6 +99,9 @@ export const getChannelAvatar = (source: string) => {
case Source.feast:
case 'Feast':
return <FeastAvatar />;
case Source.faiss:
case 'faiss':
return <MetaAvatar />;

default:
return <AiryAvatar />;
Expand Down
Binary file added lib/typescript/assets/images/icons/meta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions lib/typescript/model/Source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export enum Source {
redis = 'redis',
postgresql = 'postgresql',
feast = 'feast',
faiss = 'faiss',
amazons3 = 'amazons3',
amazonLexV2 = 'amazonLexV2',
integrationSourceApi = 'integrationSourceApi',
Expand All @@ -30,14 +31,14 @@ export enum Source {
export enum SourceApps {
redis = 'redis',
postgresql = 'postgresql',
feast = 'feast',
faiss = 'faiss',
}

export const isApp = (source: string): boolean => {
switch (source) {
case SourceApps.postgresql:
case SourceApps.redis:
case SourceApps.feast:
case SourceApps.faiss:
return true;
}
return false;
Expand Down

0 comments on commit 919b099

Please sign in to comment.