diff --git a/frontend/src/components/PostEditForm.tsx b/frontend/src/components/PostEditForm.tsx index ad7ba82..18270ce 100644 --- a/frontend/src/components/PostEditForm.tsx +++ b/frontend/src/components/PostEditForm.tsx @@ -62,12 +62,14 @@ export default (({ post, onSave }: Props) => {
以降
より前 diff --git a/frontend/src/components/common/DateTimeField.tsx b/frontend/src/components/common/DateTimeField.tsx index bd7509a..c152f2a 100644 --- a/frontend/src/components/common/DateTimeField.tsx +++ b/frontend/src/components/common/DateTimeField.tsx @@ -1,5 +1,7 @@ import { useEffect, useState } from 'react' +import { cn } from '@/lib/utils' + import type { FC } from 'react' @@ -19,10 +21,11 @@ const toDateTimeLocalValue = (d: Date) => { type Props = { value?: string - onChange?: (isoUTC: string | null) => void } + onChange?: (isoUTC: string | null) => void + className?: string } -export default (({ value, onChange }: Props) => { +export default (({ value, onChange, className }: Props) => { const [local, setLocal] = useState ('') useEffect (() => { @@ -31,7 +34,7 @@ export default (({ value, onChange }: Props) => { return (