Skip to content

Commit

Permalink
new(quick links): sonar issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw committed Feb 12, 2024
1 parent 8f58ee1 commit 8dee877
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/basic/QuickLinks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ import MuiButton, {
} from '@mui/material/Button'
import { Typography } from '../Typography'

export interface QuickLinksItems {
backgroundColor: string
title: string
url: string
}

export interface QuickLinksProps
extends Omit<MuiQuickLinksProps, 'color' | 'size'> {
size: 'medium'
items: {
backgroundColor: string
title: string
url: string
}[]
items: QuickLinksItems[]
color?: string
headerTitle?: string
alignButtons?: string
Expand Down Expand Up @@ -61,7 +63,7 @@ export const QuickLinks = ({
margin: '10px',
}}
>
{items?.map((data: any) => {
{items.map((data: QuickLinksItems) => {
return (
<div key={data.title}>
<MuiButton
Expand All @@ -70,7 +72,7 @@ export const QuickLinks = ({
sx={{
background: data.backgroundColor,
padding: '12px 22px',
color: color,
color,
margin: '0px 12px',
whiteSpace: 'nowrap',
}}
Expand Down

0 comments on commit 8dee877

Please sign in to comment.