Skip to content

Commit

Permalink
[lifeparticle#395] Revert sonar issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagiotis Bellias committed May 13, 2024
1 parent f730b29 commit e33e668
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ui/src/components/Layouts/InputGrid/InputGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@ const InputGrid: FC<InputGridProps> = ({ children, className }) => {

return (
<Row gutter={[16, 0]} className={className}>
{childElements.map((child) => (
<Col key={getKey(child)} xs={24} sm={24} md={24} lg={12}>
{childElements.map((child, index) => (
<Col key={index} xs={24} sm={24} md={24} lg={12}>
{child}
</Col>
))}
</Row>
);
};

// Function to generate unique keys based on child content
const getKey = (child: React.ReactNode): string => {
// Example: Generate a unique key based on child content
return `${child}`;
};

export default InputGrid;

0 comments on commit e33e668

Please sign in to comment.