Skip to content

Commit

Permalink
🔨 chore: Add slot (lobehub#2821)
Browse files Browse the repository at this point in the history
* 💄 style: Add slot

* 🔧 chore: Add spacing
  • Loading branch information
canisminor1990 authored Jun 9, 2024
1 parent 428c9f0 commit ddf42f8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/(main)/(mobile)/me/(home)/features/useCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const useCategory = () => {
},
];

/* ↓ cloud slot ↓ */

/* ↑ cloud slot ↑ */

const data: CellProps[] = [
{
icon: Database,
Expand Down Expand Up @@ -101,6 +105,9 @@ export const useCategory = () => {
},
...(isLoginWithClerk ? profile : []),
...(enableAuth ? (isLoginWithAuth ? settings : []) : settingsWithoutAuth),
/* ↓ cloud slot ↓ */

/* ↑ cloud slot ↑ */
...(canInstall ? pwa : []),
...(isLogin ? data : []),
...helps,
Expand Down
3 changes: 3 additions & 0 deletions src/app/(main)/chat/@session/_layout/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const DesktopLayout = ({ children }: PropsWithChildren) => {
<>
<Header />
<PanelBody>{children}</PanelBody>
{/* ↓ cloud slot ↓ */}

{/* ↑ cloud slot ↑ */}
</>
);
};
Expand Down
3 changes: 3 additions & 0 deletions src/app/(main)/chat/@session/_layout/Mobile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const MobileLayout = ({ children }: PropsWithChildren) => {
<SessionSearchBar mobile />
</div>
{children}
{/* ↓ cloud slot ↓ */}

{/* ↑ cloud slot ↑ */}
</MobileContentLayout>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/app/(main)/market/_layout/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Layout = ({ children, detail }: LayoutProps) => {
</Flexbox>
</Flexbox>
{/* ↓ cloud slot ↓ */}

{/* ↑ cloud slot ↑ */}
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ const ProviderConfig = memo<ProviderConfigProps>(
},
].filter(Boolean) as FormItemProps[];

/* ↓ cloud slot ↓ */

/* ↑ cloud slot ↑ */

const model: ItemGroup = {
children: formItems,

Expand Down
7 changes: 7 additions & 0 deletions src/features/User/UserPanel/useMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export const useMenu = () => {
},
];

/* ↓ cloud slot ↓ */

/* ↑ cloud slot ↑ */

const pwa: MenuProps['items'] = [
{
icon: <Icon icon={Download} />,
Expand Down Expand Up @@ -207,6 +211,9 @@ export const useMenu = () => {
},
...(isLoginWithClerk ? profile : []),
...(isLogin ? settings : []),
/* ↓ cloud slot ↓ */

/* ↑ cloud slot ↑ */
...(canInstall ? pwa : []),
...(isLogin ? data : []),
...helps,
Expand Down

0 comments on commit ddf42f8

Please sign in to comment.