mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-01 17:28:15 +00:00
Update src/components/EmptyChat.tsx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ead2a5b215
commit
cb30e2438a
@@ -14,7 +14,7 @@ import {
|
||||
} from '@/lib/config/clientRegistry';
|
||||
|
||||
const EmptyChat = () => {
|
||||
const [showWeather, setShowWeather] = useState(true);
|
||||
const [showWeather, setShowWeather] = useState(() => (typeof window !== 'undefined' ? getShowWeatherWidget() : true));
|
||||
const [showNews, setShowNews] = useState(() => (typeof window !== 'undefined' ? getShowNewsWidget() : true));
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user