Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomimarkus991 committed Dec 22, 2022
1 parent ad0d353 commit 951e69c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redlotus/ui",
"version": "0.1.3",
"version": "0.1.4",
"description": "React UI library",
"type": "module",
"scripts": {
Expand Down
12 changes: 10 additions & 2 deletions src/components/layouts/wrappers/logged-in/PartialPageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@ interface Props {
* Main content
*/
children: React.ReactNode;
Sidebar: React.ReactNode;
Sidebar?: React.ReactNode;
MobileContent: React.ReactNode;
/**
* Column on the right side of the screen
*/
RightSide?: React.ReactNode;
classNameContent?: string;
}

export const PartialPageWrapper = ({ children, RightSide, Sidebar, MobileContent }: Props) => {
export const PartialPageWrapper = ({
children,
RightSide,
Sidebar,
MobileContent,
classNameContent,
}: Props) => {
const { isMobile } = useIsMobile();
const { sidebarState } = useSidebar();

Expand All @@ -42,6 +49,7 @@ export const PartialPageWrapper = ({ children, RightSide, Sidebar, MobileContent
<div
className={clsx(
"w-full py-8 px-6",
classNameContent,
(sidebarState === "expanded" || sidebarState === "small") && "ml-[6.5rem]"
)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlay/popovers/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PopoverButton, PopoverProps } from ".";

export const Popover = ({ children, action, animKey }: PopoverProps) => {
return (
<HeadlessPopover className="z-[1301]">
<HeadlessPopover>
{({ open }) => (
<>
<PopoverButton>{action}</PopoverButton>
Expand Down

0 comments on commit 951e69c

Please sign in to comment.