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

chore: remove some any type

parent 5b3c2663
No related branches found
No related tags found
No related merge requests found
......@@ -104,17 +104,16 @@ const ProfileTypeFormDateSelection = ({
setNextStep({ ...profileType, [answerType.attribute]: answer })
}
function handleSelectMonth(event: any) {
function handleSelectMonth(value: string) {
setSelectedMonth({
value: event.target.value,
label: getMonthFullName(parseInt(event.target.value)),
value: value,
label: getMonthFullName(parseInt(value)),
})
setAnswer(buildISODate(selectedYear.toString(), event.target.value))
setAnswer(buildISODate(selectedYear.toString(), value))
}
function handleSelectYear(event: any) {
setSelectedYear(parseInt(event.target.value))
setAnswer(buildISODate(event.target.value, selectedMonth.value))
function handleSelectYear(value: string) {
setAnswer(buildISODate(value, selectedMonth.value))
}
/** If current year, only show past and present months else show full months */
......@@ -139,7 +138,7 @@ const ProfileTypeFormDateSelection = ({
className="month"
defaultValue={selectedMonth.value}
value={selectedMonth.value}
onChange={e => handleSelectMonth(e)}
onChange={e => handleSelectMonth(e.target.value)}
>
{renderMonths.map(month => (
<MenuItem
......@@ -158,7 +157,7 @@ const ProfileTypeFormDateSelection = ({
className="year"
defaultValue={selectedYear}
value={selectedYear}
onChange={e => handleSelectYear(e)}
onChange={e => handleSelectYear(e.target.value)}
>
{selectYears.map(year => (
<MenuItem value={year} key={year} className="date-option">
......
......@@ -12,7 +12,7 @@ export interface Account extends AccountAttributes {
id?: string
_rev?: string
_type?: string
cozyMetadata?: Record<string, any>
cozyMetadata?: Record<string, unknown>
}
export interface SgeAccountData {
consentId: number
......
  • build-token @group_1518_bot_2801ee8bae68451533dcea1179b03710

    mentioned in commit dfcf40bf

    ·

    mentioned in commit dfcf40bf

    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