Skip to content

Commit

Permalink
chore(demo): fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Dec 15, 2022
1 parent e58a854 commit ef25986
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions demo/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ const Root = ({ classes }) => (
hooksCode={FocusPopoverHooksCode}
/>
<Demo
title="DoubleClick Poper"
headerId="doubleClick-poper"
title="Double Click Popper"
headerId="double-click-popper"
example={<DoubleClickPopover />}
code={DoubleClickPopoverCode}
hooksExample={<DoubleClickPopoverHooks />}
Expand Down
6 changes: 3 additions & 3 deletions demo/examples/DoubleClickPopover.hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
bindPopover,
} from 'material-ui-popup-state/hooks'

const DoubleClickPoperPopupState = ({ classes }) => {
const DoubleClickPopperPopupState = ({ classes }) => {
const popupState = usePopupState({
variant: 'popover',
popupId: 'demoPopover',
Expand All @@ -17,7 +17,7 @@ const DoubleClickPoperPopupState = ({ classes }) => {
return (
<div>
<Button {...bindDoubleClick(popupState)} variant="contained">
Double click to open poper
Double click to open Popper
</Button>
<Popover
{...bindPopover(popupState)}
Expand All @@ -38,4 +38,4 @@ const DoubleClickPoperPopupState = ({ classes }) => {
)
}

export default DoubleClickPoperPopupState
export default DoubleClickPopperPopupState
6 changes: 3 additions & 3 deletions demo/examples/DoubleClickPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import PopupState, {
} from 'material-ui-popup-state'
import { ClickAwayListener } from '@mui/material'

const DoubleClickPoperPopupState = ({ classes }) => (
const DoubleClickPopperPopupState = ({ classes }) => (
<PopupState variant="popover" popupId="demoPopover">
{(popupState) => (
<ClickAwayListener onClickAway={popupState.close}>
<Button {...bindDoubleClick(popupState)} variant="contained">
Double click to open poper
Double click to open Popper
</Button>
<Popover
{...bindPopper(popupState)}
Expand All @@ -35,4 +35,4 @@ const DoubleClickPoperPopupState = ({ classes }) => (
</PopupState>
)

export default DoubleClickPoperPopupState
export default DoubleClickPopperPopupState

0 comments on commit ef25986

Please sign in to comment.