Release: rename project from ChatGPT Clone to LibreChat in various files and configurations (#454)

This commit is contained in:
Danny Avila 2023-06-05 14:24:08 -04:00 committed by GitHub
parent f845192d2d
commit 638faf9850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 26 additions and 35 deletions

View file

@ -1,16 +1,12 @@
import React, { useState } from 'react';
import { useRecoilValue, useSetRecoilState } from 'recoil';
import useDocumentTitle from '~/hooks/useDocumentTitle';
import Templates from '../ui/Templates';
import SunIcon from '../svg/SunIcon';
import LightningIcon from '../svg/LightningIcon';
import CautionIcon from '../svg/CautionIcon';
import ChatIcon from '../svg/ChatIcon';
import store from '~/store';
export default function Landing() {
const [showingTemplates, setShowingTemplates] = useState(false);
const setText = useSetRecoilState(store.text);
const conversation = useRecoilValue(store.conversation);
const { title = 'New Chat' } = conversation || {};
@ -24,11 +20,6 @@ export default function Landing() {
setText(quote);
};
const showTemplates = (e) => {
e.preventDefault();
setShowingTemplates(!showingTemplates);
};
return (
<div className="flex h-full flex-col items-center overflow-y-auto pt-0 text-sm dark:bg-gray-800">
<div className="w-full px-6 text-gray-800 dark:text-gray-100 md:flex md:max-w-2xl md:flex-col lg:max-w-3xl">
@ -36,7 +27,7 @@ export default function Landing() {
id="landing-title"
className="mb-10 ml-auto mr-auto mt-6 flex items-center justify-center gap-2 text-center text-4xl font-semibold sm:mb-16 md:mt-[10vh]"
>
{import.meta.env.VITE_APP_TITLE || 'ChatGPT Clone'}
{import.meta.env.VITE_APP_TITLE || 'LibreChat'}
</h1>
<div className="items-start gap-3.5 text-center md:flex">
<div className="mb-8 flex flex-1 flex-col gap-3.5 md:mb-auto">