File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
refact-agent/gui/src/features/AgentUsage Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,13 @@ export const AgentUsage: React.FC = () => {
2727 return `You have reached your usage limit of ${ maxAgentUsageAmount } messages a day.
2828 You can ${
2929 toolUse === "agent" ? "use agent" : "send messages"
30- } again tomorrow, or upgrade to PRO.`;
30+ } again tomorrow${ plan === "FREE" ? " , or upgrade to PRO." : "." } `;
3131 }
3232
3333 if ( agentUsageAmount <= 5 ) {
34- return `You have left only ${ agentUsageAmount } messages left today. To remove
35- the limit upgrade to PRO.` ;
34+ return `You have left only ${ agentUsageAmount } messages left today.${
35+ plan === "FREE" ? " To remove the limit upgrade to PRO." : ""
36+ } `;
3637 }
3738
3839 return `You have ${ agentUsageAmount } ${
@@ -58,16 +59,18 @@ export const AgentUsage: React.FC = () => {
5859 >
5960 < ReloadIcon />
6061 </ IconButton >
61- < LinkButton
62- size = "2"
63- variant = "outline"
64- href = "https://refact.smallcloud.ai/pro"
65- target = "_blank"
66- onClick = { startPollingForUser }
67- className = { styles . upgrade_button }
68- >
69- Upgrade now
70- </ LinkButton >
62+ { plan === "FREE" && (
63+ < LinkButton
64+ size = "2"
65+ variant = "outline"
66+ href = "https://refact.smallcloud.ai/pro"
67+ target = "_blank"
68+ onClick = { startPollingForUser }
69+ className = { styles . upgrade_button }
70+ >
71+ Upgrade now
72+ </ LinkButton >
73+ ) }
7174 </ Flex >
7275 </ Flex >
7376 </ Card >
You can’t perform that action at this time.
0 commit comments