@medplum/react-scheduling 5.1.29 → 5.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +4 -4
- package/dist/cjs/index.d.ts +250 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +4 -4
- package/dist/esm/index.d.ts +250 -0
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -29,13 +29,16 @@ Note the following peer dependencies:
|
|
|
29
29
|
|
|
30
30
|
## Basic Usage
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
These components are intended to be used inside an application built using [`@medplum/react`](https://www.npmjs.com/package/@medplum/react). Components expect to be mounted inside a `<MedplumProvider>` and a `<MantineProvider>`.
|
|
33
|
+
|
|
34
|
+
Learn more about setting up your application at https://www.medplum.com/docs/react.
|
|
33
35
|
|
|
34
36
|
```tsx
|
|
35
37
|
import { getReferenceString } from '@medplum/core';
|
|
36
38
|
import type { Practitioner } from '@medplum/fhirtypes';
|
|
37
39
|
import { useSearchResources } from '@medplum/react';
|
|
38
|
-
import { Calendar } from '@medplum/react-scheduling'
|
|
40
|
+
import { Calendar } from '@medplum/react-scheduling';
|
|
41
|
+
import '@medplum/react-scheduling/styles.css';
|
|
39
42
|
|
|
40
43
|
export function ScheduleView(props: { practitioner: Practitioner }) {
|
|
41
44
|
const [appointments, loading] = useSearchResources(
|
|
@@ -47,7 +50,7 @@ export function ScheduleView(props: { practitioner: Practitioner }) {
|
|
|
47
50
|
if (loading) {
|
|
48
51
|
return <>Loading...</>;
|
|
49
52
|
}
|
|
50
|
-
return <Calendar appointments={appointments}
|
|
53
|
+
return <Calendar appointments={appointments} />;
|
|
51
54
|
}
|
|
52
55
|
```
|
|
53
56
|
|