Skip to content

Commit

Permalink
token fiix
Browse files Browse the repository at this point in the history
  • Loading branch information
noobskies committed Apr 4, 2024
1 parent a80a3f2 commit f8da3ef
Showing 1 changed file with 47 additions and 49 deletions.
96 changes: 47 additions & 49 deletions client/src/components/Nav/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,57 +74,55 @@ function NavLinks() {
<Menu as="div" className="group relative">
{({ open }) => (
<>
{startupConfig?.checkBalance && (
<div className="m-1 ml-3 flex flex-col items-start whitespace-nowrap text-left text-sm text-gray-100">
<div className="flex items-center">
<span
data-tooltip-id="token-explain"
data-tooltip-html={localize('gpt4_token_burn_rate')}
className="text-gray-800 dark:text-gray-200"
>
{`${localize('com_tokens_remaining')} ${formatTokenCount(balanceQuery.data)}`}

<svg
width="18px"
height="18px"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="ml-1"
style={{ display: 'inline-block' }}
>
<path
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M9 9C9 5.49997 14.5 5.5 14.5 9C14.5 11.5 12 10.9999 12 13.9999"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M12 18.01L12.01 17.9989"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</span>
</div>
<button
onClick={() => setShowBuyTokens(true)}
className="mt-2 w-full rounded bg-green-500 p-2 text-white hover:bg-green-600 dark:hover:bg-green-600"
<div className="m-1 ml-3 flex flex-col items-start whitespace-nowrap text-left text-sm text-gray-100">
<div className="flex items-center">
<span
data-tooltip-id="token-explain"
data-tooltip-html={localize('gpt4_token_burn_rate')}
className="text-gray-800 dark:text-gray-200"
>
{localize('com_ui_buy_token')}
</button>
{`${localize('com_tokens_remaining')} ${formatTokenCount(balanceQuery.data)}`}

<svg
width="18px"
height="18px"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="ml-1"
style={{ display: 'inline-block' }}
>
<path
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M9 9C9 5.49997 14.5 5.5 14.5 9C14.5 11.5 12 10.9999 12 13.9999"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M12 18.01L12.01 17.9989"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</span>
</div>
)}
<button
onClick={() => setShowBuyTokens(true)}
className="mt-2 w-full rounded bg-green-500 p-2 text-white hover:bg-green-600 dark:hover:bg-green-600"
>
{localize('com_ui_buy_token')}
</button>
</div>
<Menu.Button
className={cn(
'group-ui-open:bg-gray-100 dark:group-ui-open:bg-gray-700 duration-350 mt-text-sm mb-1 flex h-11 w-full items-center gap-2 rounded-lg px-3 py-3 text-sm transition-colors hover:bg-gray-100 dark:hover:bg-gray-700',
Expand Down

0 comments on commit f8da3ef

Please sign in to comment.