Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs-site/src/components/Example/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { forwardRef, useMemo, useState } from "react";
import React, { forwardRef, useMemo, useRef, useState } from "react";
import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live";
import DatePicker, {
registerLocale,
Expand Down Expand Up @@ -164,6 +164,7 @@ export default class CodeExampleComponent extends React.Component<
// NB any globals added here should also be referenced in ../../examples/.eslintrc
useState,
useMemo,
useRef,
DatePicker,
CalendarContainer,
DateFNS,
Expand Down
1 change: 1 addition & 0 deletions docs-site/src/examples/live-provider-globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { MiddlewareState as MiddlewareStateType } from "@floating-ui/react"
declare global {
const useMemo: typeof React.useMemo;
const useState: typeof React.useState;
const useRef: typeof React.useRef;
const DatePicker: any;
const CalendarContainer: any;
const range: any;
Expand Down
Loading