Skip to content

Commit

Permalink
careplan start date - use date picker (#95)
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Chen <amysbubble@MacBook-Pro-5.local>
  • Loading branch information
achen2401 and Amy Chen authored Jun 12, 2024
1 parent e2d4eb9 commit 8c527b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/EnrollmentApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
import moment from "moment";
import {DateTimePicker} from "@mui/x-date-pickers/DateTimePicker";
import {DatePicker} from "@mui/x-date-pickers/DatePicker";
import CarePlan from "../model/CarePlan";
import {IsaccMessageCategory} from "../model/CodeSystem";
import {IBundle_Entry, ICommunicationRequest} from "@ahryman40k/ts-fhir-types/lib/R4";
Expand Down Expand Up @@ -269,11 +269,11 @@ export default class EnrollmentApp extends React.Component<{}, EnrollmenAppState
sx={{ padding: (theme) => theme.spacing(1, 0, 0) }}
>
<LocalizationProvider dateAdapter={AdapterMoment}>
<DateTimePicker
label="Start date & time"
<DatePicker
label="Start date"
// @ts-ignore
value={selectedValue ?? moment()}
format="ddd, MM/DD/YYYY hh:mm A" // example output display: Thu, 03/09/2023 09:34 AM
value={selectedValue}
format="ddd, MM/DD/YYYY" // example output display: Thu, 03/09/2023
onChange={(newValue: moment.Moment | null) => {
this.setState({
selectedCarePlanStartDate: newValue.toDate(),
Expand Down

0 comments on commit 8c527b3

Please sign in to comment.