diff --git a/.eslintrc.js b/.eslintrc.js
index 2c967723..22fd91c4 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -2,5 +2,6 @@ module.exports = {
extends: ['react-app', 'prettier', 'plugin:prettier/recommended'],
rules: {
'@typescript-eslint/consistent-type-assertions': 0,
+ 'react/button-has-type': [2, { submit: false, reset: false }],
},
};
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index e4abfbc0..41331302 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,8 +1,3 @@
-
-
**What kind of change does this PR introduce?**
@@ -19,4 +14,5 @@ Fill out the information to help the review and merge of your pull request!
- [ ] Tests
- [ ] Ready to be merged
-
\ No newline at end of file
+
+
diff --git a/src/components/button.tsx b/src/components/button.tsx
index 8f98f140..00e3e283 100644
--- a/src/components/button.tsx
+++ b/src/components/button.tsx
@@ -1,7 +1,7 @@
import { Button, ButtonProps } from 'semantic-ui-react';
const CustomButton = ({ icon, ...otherProps }: ButtonProps) => (
-
+
);
export default CustomButton;
diff --git a/src/components/calendar/calendar.tsx b/src/components/calendar/calendar.tsx
index 073f7251..65aa6587 100644
--- a/src/components/calendar/calendar.tsx
+++ b/src/components/calendar/calendar.tsx
@@ -102,6 +102,7 @@ const Calendar: React.FC = ({
icon="angle double left"
inverted={inverted}
title={previousYear}
+ type="button"
{...getBackProps({
calendars,
'aria-label': previousYear,
@@ -114,6 +115,7 @@ const Calendar: React.FC = ({
inverted={inverted}
style={{ marginRight: 0 }}
title={previousMonth}
+ type="button"
{...getBackProps({
calendars,
'aria-label': previousMonth,
@@ -135,6 +137,7 @@ const Calendar: React.FC = ({
icon="angle right"
inverted={inverted}
title={nextMonth}
+ type="button"
{...getForwardProps({
calendars,
'aria-label': nextMonth,
@@ -146,6 +149,7 @@ const Calendar: React.FC = ({
inverted={inverted}
style={{ marginRight: 0 }}
title={nextYear}
+ type="button"
{...getForwardProps({
calendars,
'aria-label': nextYear,
@@ -201,7 +205,7 @@ const Calendar: React.FC = ({
))}
- {showToday && (
+ {showToday ? (
= ({
>
{todayButton}
- )}
+ ) : null}
);
diff --git a/src/components/cell/cell.tsx b/src/components/cell/cell.tsx
index c6391ab3..9ae50e6f 100644
--- a/src/components/cell/cell.tsx
+++ b/src/components/cell/cell.tsx
@@ -48,7 +48,12 @@ const CalendarCell = ({
}
return (
-