mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-20 17:26:12 +01:00
🔖 fix: Agent Marketplace Bookmark and New Chat buttons (#9549)
* don't require conversation for bookmark button * wrap marketplace component so it can correctly use context hooks * chore: re-order import statement for MarketplaceProvider --------- Co-authored-by: Danny Avila <danacordially@gmail.com>
This commit is contained in:
parent
04c3a5a861
commit
31445e391a
4 changed files with 203 additions and 214 deletions
|
|
@ -8,6 +8,7 @@ import {
|
|||
TwoFactorScreen,
|
||||
RequestPasswordReset,
|
||||
} from '~/components/Auth';
|
||||
import { MarketplaceProvider } from '~/components/Agents/MarketplaceContext';
|
||||
import AgentMarketplace from '~/components/Agents/Marketplace';
|
||||
import { OAuthSuccess, OAuthError } from '~/components/OAuth';
|
||||
import { AuthContextProvider } from '~/hooks/AuthContext';
|
||||
|
|
@ -112,11 +113,19 @@ export const router = createBrowserRouter(
|
|||
},
|
||||
{
|
||||
path: 'agents',
|
||||
element: <AgentMarketplace />,
|
||||
element: (
|
||||
<MarketplaceProvider>
|
||||
<AgentMarketplace />
|
||||
</MarketplaceProvider>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: 'agents/:category',
|
||||
element: <AgentMarketplace />,
|
||||
element: (
|
||||
<MarketplaceProvider>
|
||||
<AgentMarketplace />
|
||||
</MarketplaceProvider>
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue