Skip to content

Commit

Permalink
fix: unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasm committed Aug 18, 2024
1 parent 21873cf commit bba1b7c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 21 deletions.
6 changes: 4 additions & 2 deletions app/[locale]/terms/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import Style from '@/layouts/WebsiteLayout/WebsiteLayout.module.css'
import WebsiteLayout from '@/layouts/WebsiteLayout'

const title = 'Terms of Service'
const description = 'See how to use Findto for the common good'
export const metadata = {
title: 'Terms of Service',
description: 'See how to use Findto, and respect rules for the common good.',
}

export default function PageTerms() {
return (
Expand Down
1 change: 0 additions & 1 deletion components/CardsFeat/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Style from './CardsFeat.module.css'
import {
IconAccessibility,
IconCheckOk,
IconLanguage,
IconLeaf,
IconMic,
Expand Down
2 changes: 1 addition & 1 deletion components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function Search() {
}
}
}
const handleOptionChange = (event: any) => {
const handleOptionChange = () => {
console.log(
data?.find((item: { name: any }) => item.name === category)?.data,
)
Expand Down
2 changes: 1 addition & 1 deletion components/SearchTitle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface SearchTitleProps {
export default function SearchTitle({
additionalLeftElement,
}: SearchTitleProps) {
const { data, category, search, color, setTitleTrends } = useSearch()
const { data, category, setTitleTrends } = useSearch()
const [titleSearch, setTitleSearch] = useState<string>('')

// title
Expand Down
3 changes: 1 addition & 2 deletions components/WidgetCarbon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default function WidgetCarbon() {
const [isOpen, setIsOpen] = useState<boolean>(false)
const containerRef = useRef<HTMLDivElement | null>(null)

const [label, setLabel] = useState<string>()
const [domain, setDomain] = useState<string | null>(null)
const [percents, setPercents] = useState<string[]>(['30', '70'])

Expand Down Expand Up @@ -70,7 +69,7 @@ export default function WidgetCarbon() {
refreshWhenOffline: false,
refreshWhenHidden: false,
refreshInterval: 0,
}
},
)

useEffect(() => {
Expand Down
4 changes: 0 additions & 4 deletions layouts/AppLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import AppHeader from '@/components/Header'

import AppFooter from '@/components/Footer'

const title = 'Decentralized Web & AI Search'
const description =
'Findto is an assistant for decentralized Web & AI search. Explore a healthier internet with control over algorithms, privacy, and carbon.'

export default function LayoutApp({ children }: { children: React.ReactNode }) {
return (
<>
Expand Down
7 changes: 2 additions & 5 deletions pages/api/trends/code.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import type { NextApiResponse } from 'next'
import axios from 'axios'
import { ITrends } from '../../../interfaces/trends'

export default async function endpoint(
req: NextApiRequest,
res: NextApiResponse
): Promise<void> {
export default async function endpoint(res: NextApiResponse): Promise<void> {
const url = 'https://api.gitterapp.com'

try {
Expand Down
7 changes: 2 additions & 5 deletions pages/api/trends/images.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import type { NextApiResponse } from 'next'
import axios from 'axios'
import { ITrends } from '../../../interfaces/trends'

export default async function endpoint(
req: NextApiRequest,
res: NextApiResponse
): Promise<void> {
export default async function endpoint(res: NextApiResponse): Promise<void> {
let url =
'https://api.unsplash.com/topics?client_id=' +
process.env.NEXT_PUBLIC_API_UNSPLASH +
Expand Down

0 comments on commit bba1b7c

Please sign in to comment.