Skip to content

Commit

Permalink
Add sonarcloud feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashonecker committed Jun 28, 2024
1 parent 3359f32 commit 800d681
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/buttons/CancelButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type CancelButtonProps = {
onClick: () => void;
};

export default function CancelButton({ onClick }: CancelButtonProps) {
export default function CancelButton({ onClick }: Readonly<CancelButtonProps>) {
return (
<Button
onClick={onClick}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/buttons/SaveButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type SaveButtonProps = {
onClick: () => void;
};

export default function SaveButton({ onClick }: SaveButtonProps) {
export default function SaveButton({ onClick }: Readonly<SaveButtonProps>) {
return (
<Button
onClick={onClick}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/buttons/UpdateButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type UpdateButtonProps = {
onClick: () => void;
};

export default function UpdateButton({ onClick }: UpdateButtonProps) {
export default function UpdateButton({ onClick }: Readonly<UpdateButtonProps>) {
return (
<Button
onClick={onClick}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/inputs/TicketDescriptionInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function TicketDescriptionInput({
description,
setDescription,
descriptionError,
}: TicketDescriptionInputProps) {
}: Readonly<TicketDescriptionInputProps>) {
return (
<>
<Box
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/inputs/TicketTitleInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function TicketTitleInput({
titleError,
setTitle,
title,
}: TicketTitleInputProps) {
}: Readonly<TicketTitleInputProps>) {
return (
<TextField
fullWidth
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/layout/TicketCardsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type TicketCardsGridProps = {
export default function TicketCardsGrid({
searchResults,
setSidepanelStatus,
}: TicketCardsGridProps) {
}: Readonly<TicketCardsGridProps>) {
const theme = useTheme();
const isXs = useMediaQuery(theme.breakpoints.only("xs"));
const isSm = useMediaQuery(theme.breakpoints.only("sm"));
Expand Down Expand Up @@ -40,7 +40,7 @@ export default function TicketCardsGrid({
<Box display="flex" gap={{ xs: 2, md: 3 }}>
{columns.map((column, colIndex) => (
<Box
key={colIndex}
key={`column-${colIndex}`}
display="flex"
flexDirection="column"
gap={{ xs: 2, md: 3 }}
Expand Down

0 comments on commit 800d681

Please sign in to comment.