Skip to content

Commit

Permalink
feat: trying to fix sonarCloud errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
gony02 committed Mar 3, 2024
1 parent b3ab87c commit 348eb38
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"i18next": "^23.8.2",
"i18next-browser-languagedetector": "^7.2.0",
"i18next-http-backend": "^2.4.3",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.0.5",
Expand Down
10 changes: 10 additions & 0 deletions webapp/src/components/ButtonEf.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import React from 'react';
import { Button } from "@chakra-ui/react";
import PropTypes from 'prop-types';
import '../styles/AppView.css';

const ButtonEf = ({ dataTestId, variant, colorScheme, text, onClick }) => {
return (
<Button type="submit" data-testid={dataTestId} variant={variant} colorScheme={colorScheme} margin={"10px"} className={"custom-button effect1"} onClick={onClick}>{text}</Button>
);
};

ButtonEf.propTypes = {
dataTestId: PropTypes.string.isRequired,
variant: PropTypes.string.isRequired,
colorScheme: PropTypes.string.isRequired,
text: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired,
};

export default ButtonEf;

0 comments on commit 348eb38

Please sign in to comment.