mirror of https://github.com/kortix-ai/suna.git
fix: showing snack
This commit is contained in:
parent
86928c9d4a
commit
9c62b8e805
|
@ -142,7 +142,7 @@ export const ChatInput = forwardRef<ChatInputHandles, ChatInputProps>(
|
|||
|
||||
// Auto-show usage preview when we have subscription data
|
||||
useEffect(() => {
|
||||
if (shouldShowUsage && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) {
|
||||
if (shouldShowUsage && defaultShowSnackbar !== false && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) {
|
||||
setShowSnackbar('upgrade');
|
||||
}
|
||||
}, [subscriptionData, showSnackbar, defaultShowSnackbar, shouldShowUsage]);
|
||||
|
|
|
@ -156,7 +156,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
const renderDropdown = () => {
|
||||
if (isLoggedIn) {
|
||||
const showAdvancedFeatures = enableAdvancedConfig || (customAgentsEnabled && !flagsLoading);
|
||||
|
||||
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
{showAdvancedFeatures && !hideAgentSelection && (
|
||||
|
@ -223,7 +223,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
|
||||
</div>
|
||||
|
||||
{subscriptionStatus === 'no_subscription' && !isLocalMode() &&
|
||||
{/* {subscriptionStatus === 'no_subscription' && !isLocalMode() &&
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger>
|
||||
|
@ -234,7 +234,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
|||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
}
|
||||
} */}
|
||||
|
||||
<div className='flex items-center gap-2'>
|
||||
{renderDropdown()}
|
||||
|
|
Loading…
Reference in New Issue