diff --git a/src/components/Button.tsx b/src/components/Button.tsx new file mode 100644 index 0000000..31ae773 --- /dev/null +++ b/src/components/Button.tsx @@ -0,0 +1,18 @@ +type ButtonProps = { + className?: string; + children: React.ReactChild | React.ReactChild[]; +}; + +export default function Button(props: ButtonProps): JSX.Element { + return ( +
{props.description}
: ""} -diff --git a/src/components/Panels/SubPanel.tsx b/src/components/Panels/SubPanel.tsx index 8bf6a77..2c9b96b 100644 --- a/src/components/Panels/SubPanel.tsx +++ b/src/components/Panels/SubPanel.tsx @@ -4,7 +4,7 @@ type SubPanelProps = { export default function SubPanel(props: SubPanelProps): JSX.Element { return ( -
- {content.attributes.range[0].__typename === - "ComponentRangePageRange" - ? content.attributes.range[0].starting_page - : ""} -
-{content.attributes.type.data.attributes.slug}
-+ {content.attributes.range[0].__typename === + "ComponentRangePageRange" + ? content.attributes.range[0].starting_page + : ""} +
+