File tree Expand file tree Collapse file tree
packages/design-system-react-native/src/components/BannerAlert Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ export const BannerAlert: React.FC<BannerAlertProps> = ({
1919 twClassName,
2020 ...props
2121} ) => {
22- const resolvedSeverity = severity ;
23- const iconName = MAP_BANNER_ALERT_SEVERITY_ICON_NAME [ resolvedSeverity ] ;
24- const iconColor = MAP_BANNER_ALERT_SEVERITY_ICON_COLOR [ resolvedSeverity ] ;
22+ const iconName = MAP_BANNER_ALERT_SEVERITY_ICON_NAME [ severity ] ;
23+ const iconColor = MAP_BANNER_ALERT_SEVERITY_ICON_COLOR [ severity ] ;
2524 const backgroundColor =
26- MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR [ resolvedSeverity ] ;
25+ MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR [ severity ] ;
2726 const borderColorClass =
28- MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR [ resolvedSeverity ] ??
27+ MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR [ severity ] ??
2928 BoxBorderColor . BorderDefault ;
3029 const mergedTwClassName = `border-l-4 ${ borderColorClass } ${
3130 twClassName ? ` ${ twClassName } ` : ''
You can’t perform that action at this time.
0 commit comments