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
|
// Auto-show usage preview when we have subscription data
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (shouldShowUsage && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) {
|
if (shouldShowUsage && defaultShowSnackbar !== false && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) {
|
||||||
setShowSnackbar('upgrade');
|
setShowSnackbar('upgrade');
|
||||||
}
|
}
|
||||||
}, [subscriptionData, showSnackbar, defaultShowSnackbar, shouldShowUsage]);
|
}, [subscriptionData, showSnackbar, defaultShowSnackbar, shouldShowUsage]);
|
||||||
|
|
|
@ -156,7 +156,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
||||||
const renderDropdown = () => {
|
const renderDropdown = () => {
|
||||||
if (isLoggedIn) {
|
if (isLoggedIn) {
|
||||||
const showAdvancedFeatures = enableAdvancedConfig || (customAgentsEnabled && !flagsLoading);
|
const showAdvancedFeatures = enableAdvancedConfig || (customAgentsEnabled && !flagsLoading);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
{showAdvancedFeatures && !hideAgentSelection && (
|
{showAdvancedFeatures && !hideAgentSelection && (
|
||||||
|
@ -223,7 +223,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{subscriptionStatus === 'no_subscription' && !isLocalMode() &&
|
{/* {subscriptionStatus === 'no_subscription' && !isLocalMode() &&
|
||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
|
@ -234,7 +234,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
}
|
} */}
|
||||||
|
|
||||||
<div className='flex items-center gap-2'>
|
<div className='flex items-center gap-2'>
|
||||||
{renderDropdown()}
|
{renderDropdown()}
|
||||||
|
|
Loading…
Reference in New Issue