Skip to content
Snippets Groups Projects

Feature/connect bio entity endpoint

Merged Tadeusz Miesiąc requested to merge feature/connect-bio-entity-endpoint into development
36 files
+ 299
95
Compare changes
  • Side-by-side
  • Inline
Files
36
import { assertNever } from '@/utils/assertNever';
import { PinType } from '../PinsList.types';
export const getPinColor = (type: PinType): string => {
switch (type) {
case 'bioEntity':
return 'fill-primary-500';
case 'drugs':
return 'fill-orange';
case 'chemicals':
return 'fill-purple';
case 'mirna':
return 'fill-primary-500';
case 'none':
return '';
default:
return assertNever(type);
}
const pinColors: Record<PinType, string> = {
bioEntity: 'fill-primary-500',
drugs: 'fill-orange',
chemicals: 'fill-purple',
mirna: 'fill-primary-500',
none: 'none',
};
return pinColors[type];
};
Loading