changed active

This commit is contained in:
Jonas Hinterdorfer 2025-06-15 22:24:42 +02:00
parent 4869656e68
commit f6a02a971d

View File

@ -6,7 +6,7 @@ import './HomePage.css';
const HomePage: React.FC = () => {
const [productsData, setProductsData] = useState<ProductsData>({ food: [], drinks: [] });
const [activeTab, setActiveTab] = useState<'food' | 'drinks'>('food');
const [activeTab, setActiveTab] = useState<'food' | 'drinks'>('drinks');
useEffect(() => {
const loadProducts = async () => {