Skip to content

Commit 7371bd0

Browse files
committed
fix: lint fixes
1 parent 19d7c1f commit 7371bd0

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

src/components/LandingPage/HeroSection.tsx

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,33 @@ export default function HeroSection() {
99
Browse, rate and share themes for your chatbot today and more!
1010
</h3>
1111
<div className="flex mt-6 flex-col items-center sm:flex-row gap-2">
12-
13-
14-
<Link to={"/themes"}>
15-
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
12+
<Link to={"/themes"}>
13+
<button
14+
className="
15+
bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600
16+
transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg
17+
"
18+
>
1619
Themes
1720
</button>
1821
</Link>
19-
<Link to={"/plugins"}>
20-
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
22+
<Link to={"/plugins"}>
23+
<button
24+
className="
25+
bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600
26+
transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg
27+
"
28+
>
2129
Plugins
2230
</button>
2331
</Link>
24-
<Link to={"https://react-chatbotify.com"}>
25-
<button className='bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600 transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg'>
32+
<Link to={"https://react-chatbotify.com"}>
33+
<button
34+
className="
35+
bg-accent-900 hover:bg-gradient-to-r hover:from-secondary-900 px-2 py-1 text-[14px] hover:to-primary-600
36+
transition-colors duration-300 hover:text-accent-900 sm:px-4 sm:py-2 sm:text-lg rounded-lg
37+
"
38+
>
2639
Documentation
2740
</button>
2841
</Link>

src/components/NavigationBar/NavigationBar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Link, useNavigate } from 'react-router-dom';
33

44
import { handleLogin } from '../../services/authService';
55
import { useAuth } from '../../context/AuthContext';
6-
import { SiteConfig } from '../../constants/SiteConfig';
76
import logo from '../../assets/images/logo.png';
87
import AppThemeToggle from './AppThemeToggle';
98
import { useTranslation } from 'react-i18next';
@@ -41,7 +40,7 @@ const NavigationBar = () => {
4140
const navbarRef = useRef<HTMLDivElement>(null)
4241

4342
useEffect(function(){
44-
window.addEventListener('scroll',function(e){
43+
window.addEventListener('scroll',function(){
4544
if(navbarRef.current) {
4645
if(window.scrollY >= 50) {
4746
navbarRef.current.className = navBarClass + ' opacity-80 bg-black'

src/pages/Home.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import { Link, useNavigate } from 'react-router-dom';
1+
import { useNavigate } from 'react-router-dom';
22

3-
import { handleLogin } from '../services/authService';
43
import { useAuth } from '../context/AuthContext';
5-
import { SiteConfig } from '../constants/SiteConfig';
6-
import logo from "../assets/images/logo.png";
74

8-
import { Button } from 'react-chatbotify';
95
import HeroSection from '../components/LandingPage/HeroSection';
106

117
import NavigationBar from '../components/NavigationBar/NavigationBar';
@@ -19,17 +15,21 @@ import { useTranslation } from 'react-i18next';
1915
*/
2016
const HomePage = () => {
2117
// used to render different text if user is logged in
18+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2219
const { isLoggedIn, userData } = useAuth()
2320

2421
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2522
const {t} = useTranslation();
2623

2724
// handles navigation
25+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2826
const navigate = useNavigate()
2927

3028
return (
3129
<div className="relative overflow-hidden h-screen bg-accent-50 w-full">
32-
<div className='absolute size-[60%] sm:size-[60%] md:size-[60%] bg-gradient-to-r from-secondary-900 -rotate-[30deg] to-primary-600 rounded-full z-0 top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%] blur-[150px] sm:blur-[200px]'>
30+
<div className='absolute size-[60%] sm:size-[60%] md:size-[60%] bg-gradient-to-r from-secondary-900
31+
-rotate-[30deg] to-primary-600 rounded-full z-0 top-[50%] left-[50%] -translate-x-[50%] -translate-y-[50%]
32+
blur-[150px] sm:blur-[200px]'>
3333
</div>
3434
<div className='relative z-1'>
3535
<NavigationBar />

0 commit comments

Comments
 (0)