diff --git a/src/components/Button.tsx b/src/components/Button.tsx new file mode 100644 index 000000000..9e8c76b37 --- /dev/null +++ b/src/components/Button.tsx @@ -0,0 +1,9 @@ +import React, { forwardRef, ForwardedRef } from 'react'; +import { Button as RACButton, ButtonProps } from 'react-aria-components'; + +export const Button = forwardRef(function _Button( + props: ButtonProps, + ref: ForwardedRef, +) { + return ; +}); diff --git a/src/components/Contents/AddContentPopover.tsx b/src/components/Contents/AddContentPopover.tsx index 579475fa5..4cf39b6bc 100644 --- a/src/components/Contents/AddContentPopover.tsx +++ b/src/components/Contents/AddContentPopover.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { Link, ChevronrightIcon, Popover } from '@plone/components'; interface Props { + path: string; addableTypes: { '@id': string; id: string; @@ -9,7 +10,7 @@ interface Props { }[]; } -export const AddContentPopover = ({ addableTypes }: Props) => { +export const AddContentPopover = ({ path, addableTypes }: Props) => { // const page = addableTypes.find((type) => type.id === 'Document'); return ( @@ -17,7 +18,7 @@ export const AddContentPopover = ({ addableTypes }: Props) => {