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 = ({
</div>
)
}
return null
}
export default ActionList
......@@ -138,7 +138,7 @@ const ProfileTypeFormDateSelection = ({
className="month"
defaultValue={selectedMonth.value}
value={selectedMonth.value}
onChange={e => handleSelectMonth(e.target.value)}
onChange={e => handleSelectMonth(e.target.value as string)}
>
{renderMonths.map(month => (
<MenuItem
......@@ -157,7 +157,7 @@ const ProfileTypeFormDateSelection = ({
className="year"
defaultValue={selectedYear}
value={selectedYear}
onChange={e => handleSelectYear(e.target.value)}
onChange={e => handleSelectYear(e.target.value as string)}
>
{selectYears.map(year => (
<MenuItem value={year} key={year} className="date-option">
......
......@@ -32,6 +32,7 @@ const initialState: Profile = {
}),
haveSeenLastAnalysis: true,
sendAnalysisNotification: true,
isAnalysisReminderEnabled: false,
sendConsumptionAlert: false,
waterDailyConsumptionLimit: 0,
mailToken: '',
......
......@@ -24,6 +24,7 @@ export const mockProfileState: Profile = {
zone: 'utc',
}),
haveSeenLastAnalysis: true,
isAnalysisReminderEnabled: false,
sendConsumptionAlert: false,
waterDailyConsumptionLimit: 0,
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