changed active
This commit is contained in:
parent
4869656e68
commit
f6a02a971d
@ -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 () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user