changed active
This commit is contained in:
parent
4869656e68
commit
f6a02a971d
@ -6,7 +6,7 @@ import './HomePage.css';
|
|||||||
|
|
||||||
const HomePage: React.FC = () => {
|
const HomePage: React.FC = () => {
|
||||||
const [productsData, setProductsData] = useState<ProductsData>({ food: [], drinks: [] });
|
const [productsData, setProductsData] = useState<ProductsData>({ food: [], drinks: [] });
|
||||||
const [activeTab, setActiveTab] = useState<'food' | 'drinks'>('food');
|
const [activeTab, setActiveTab] = useState<'food' | 'drinks'>('drinks');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const loadProducts = async () => {
|
const loadProducts = async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user