Skip to content
Snippets Groups Projects
Commit b48b3bfa authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore: fix types errors

parent 5ec9be9e
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,8 @@ const ActionList = ({ ...@@ -57,6 +57,8 @@ const ActionList = ({
</div> </div>
) )
} }
return null
} }
export default ActionList export default ActionList
...@@ -138,7 +138,7 @@ const ProfileTypeFormDateSelection = ({ ...@@ -138,7 +138,7 @@ const ProfileTypeFormDateSelection = ({
className="month" className="month"
defaultValue={selectedMonth.value} defaultValue={selectedMonth.value}
value={selectedMonth.value} value={selectedMonth.value}
onChange={e => handleSelectMonth(e.target.value)} onChange={e => handleSelectMonth(e.target.value as string)}
> >
{renderMonths.map(month => ( {renderMonths.map(month => (
<MenuItem <MenuItem
...@@ -157,7 +157,7 @@ const ProfileTypeFormDateSelection = ({ ...@@ -157,7 +157,7 @@ const ProfileTypeFormDateSelection = ({
className="year" className="year"
defaultValue={selectedYear} defaultValue={selectedYear}
value={selectedYear} value={selectedYear}
onChange={e => handleSelectYear(e.target.value)} onChange={e => handleSelectYear(e.target.value as string)}
> >
{selectYears.map(year => ( {selectYears.map(year => (
<MenuItem value={year} key={year} className="date-option"> <MenuItem value={year} key={year} className="date-option">
......
...@@ -32,6 +32,7 @@ const initialState: Profile = { ...@@ -32,6 +32,7 @@ const initialState: Profile = {
}), }),
haveSeenLastAnalysis: true, haveSeenLastAnalysis: true,
sendAnalysisNotification: true, sendAnalysisNotification: true,
isAnalysisReminderEnabled: false,
sendConsumptionAlert: false, sendConsumptionAlert: false,
waterDailyConsumptionLimit: 0, waterDailyConsumptionLimit: 0,
mailToken: '', mailToken: '',
......
...@@ -24,6 +24,7 @@ export const mockProfileState: Profile = { ...@@ -24,6 +24,7 @@ export const mockProfileState: Profile = {
zone: 'utc', zone: 'utc',
}), }),
haveSeenLastAnalysis: true, haveSeenLastAnalysis: true,
isAnalysisReminderEnabled: false,
sendConsumptionAlert: false, sendConsumptionAlert: false,
waterDailyConsumptionLimit: 0, waterDailyConsumptionLimit: 0,
sendAnalysisNotification: true, sendAnalysisNotification: true,
......
  • build-token @group_1518_bot_2801ee8bae68451533dcea1179b03710

    mentioned in commit 7aece449

    ·

    mentioned in commit 7aece449

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment