mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-01-19 12:25:46 +00:00
feat(app): lint & beautify
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
"use client";
|
'use client';
|
||||||
|
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Settings } from 'lucide-react';
|
import { Settings } from 'lucide-react';
|
||||||
@@ -14,8 +14,12 @@ import {
|
|||||||
} from '@/lib/config/clientRegistry';
|
} from '@/lib/config/clientRegistry';
|
||||||
|
|
||||||
const EmptyChat = () => {
|
const EmptyChat = () => {
|
||||||
const [showWeather, setShowWeather] = useState(() => (typeof window !== 'undefined' ? getShowWeatherWidget() : true));
|
const [showWeather, setShowWeather] = useState(() =>
|
||||||
const [showNews, setShowNews] = useState(() => (typeof window !== 'undefined' ? getShowNewsWidget() : true));
|
typeof window !== 'undefined' ? getShowWeatherWidget() : true,
|
||||||
|
);
|
||||||
|
const [showNews, setShowNews] = useState(() =>
|
||||||
|
typeof window !== 'undefined' ? getShowNewsWidget() : true,
|
||||||
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const updateWidgetVisibility = () => {
|
const updateWidgetVisibility = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user