feat(app): lint & beautify

This commit is contained in:
ItzCrazyKns
2025-11-28 18:41:11 +05:30
parent cb30e2438a
commit 6150784c27

View File

@@ -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 = () => {