Skip to content

Commit

Permalink
Merge pull request #329 from isucon/frontend/rm-dateToStr
Browse files Browse the repository at this point in the history
fix(frontend): 使っていないdateToStrを消去
  • Loading branch information
oribe1115 authored Jul 9, 2021
2 parents ee585ea + 2765085 commit cf93378
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions webapp/frontend/src/components/IsuGraph/DateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,4 @@ const DateInput = ({ day, fetchGraphs }: Props) => {
)
}

const dateToStr = (date: Date) => {
return `${date.getUTCFullYear()}/${pad0(date.getUTCMonth() + 1)}/${pad0(
date.getUTCDate()
)} `
}
const pad0 = (num: number) => ('0' + num).slice(-2)

export default DateInput

0 comments on commit cf93378

Please sign in to comment.