Skip to content

Commit

Permalink
Chenge info
Browse files Browse the repository at this point in the history
  • Loading branch information
DENNKA committed May 29, 2024
1 parent 87f169b commit 692ea24
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/locales/en/about.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"bw": "This text about this GUI, not BestWaifu!",
"description": "Better ChatGPT is an amazing open-source web app that allows you to play with OpenAI's ChatGPT API for free!",
"sourceCode": "Checkout the <0>source code</0> on GitHub and give it a ⭐️!",
"initiative": {
Expand Down
1 change: 1 addition & 0 deletions public/locales/ru/about.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"bw": "Данный текст о графическом интерфейсе, не о BestWaifu!",
"description": "Better ChatGPT - это потрясающее открытое веб-приложение, позволяющее вам бесплатно использовать API ChatGPT от OpenAI!",
"sourceCode": "Ознакомьтесь с <0>исходным кодом</0> на GitHub и поставьте ему ⭐️!",
"initiative": {
Expand Down
1 change: 1 addition & 0 deletions src/components/AboutMenu/AboutMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const AboutMenu = () => {
>
<div className='p-6 border-b border-gray-200 dark:border-gray-600'>
<div className='min-w-fit text-gray-900 dark:text-gray-300 text-sm flex flex-col gap-3 leading-relaxed'>
<h1>{t('bw', { ns: 'about' })} <a href="https://bestwaifu.top/" target="_blank" class="link">BestWaifu</a></h1>
<p>{t('description', { ns: 'about' })}</p>
<p>
<Trans
Expand Down
20 changes: 20 additions & 0 deletions src/components/Menu/MenuOptions/BestWaifu.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import { useTranslation } from 'react-i18next';

import HeartIcon from '@icon/HeartIcon';

const BestWaifu = () => {
const { t } = useTranslation();
return (
<a
className='flex py-2 px-2 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm'
href='https://bestwaifu.top/'
target='_blank'
>
<HeartIcon />
BestWaifu
</a>
);
};

export default BestWaifu;
2 changes: 2 additions & 0 deletions src/components/Menu/MenuOptions/MenuOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import useStore from '@store/store';

import Api from './Api';
import Me from './Me';
import BestWaifu from './BestWaifu';
import AboutMenu from '@components/AboutMenu';
import ImportExportChat from '@components/ImportExportChat';
import SettingsMenu from '@components/SettingsMenu';
Expand All @@ -25,6 +26,7 @@ const MenuOptions = () => {
>
{countTotalTokens && <TotalTokenCostDisplay />}
{googleClientId && <GoogleSync clientId={googleClientId} />}
<BestWaifu />
<AboutMenu />
<ImportExportChat />
<Api />
Expand Down

0 comments on commit 692ea24

Please sign in to comment.