weareinreach / InReach

No default cases in switch statements JS-0047
Anti-pattern
Minor
1 occurrence in this check
 56			buttons.map((button) => {
 57				let ButtonComponent: ValueOf<typeof buttonMap>
 58				let props: ComponentProps<typeof ButtonComponent>
 59				switch (button) { 60					case 'review': { 61						ButtonComponent = buttonMap.review 62						props = { 63							omitLabel: isMobile, 64						} 65						break 66					} 67					case 'share': { 68						ButtonComponent = buttonMap.share 69						props = { 70							omitLabel: isMobile, 71						} 72						break 73					} 74					case 'save': { 75						ButtonComponent = buttonMap.save 76						props = { 77							itemId: ids.serviceId ?? ids.organizationId, 78							itemName: breadcrumbProps.backToText ?? '', 79							omitLabel: isMobile, 80						} 81						break 82					} 83				} 84				return (
 85					<InView key={button} threshold={1}>
 86						{({ inView, ref }) => {