UPD: init product section
This commit is contained in:
parent
8e6666ba35
commit
9cb7678c6c
@ -1,12 +1,14 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import "./home.css";
|
import "./home.css";
|
||||||
import { PayPal, Purchase, ShowCase, Home } from '.';
|
import { PayPal, Purchase, ShowCase, Home } from '.';
|
||||||
|
import { AllProducts} from "../products"
|
||||||
|
|
||||||
// component
|
// component
|
||||||
const Details = () => {
|
const Details = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ShowCase />
|
<ShowCase />
|
||||||
|
<AllProducts />
|
||||||
<Purchase />
|
<Purchase />
|
||||||
<PayPal />
|
<PayPal />
|
||||||
</>
|
</>
|
||||||
|
15
src/components/products/allProducts.jsx
Normal file
15
src/components/products/allProducts.jsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
const AllProducts = ( ) => {
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="container">
|
||||||
|
<hr />
|
||||||
|
<span className="danger">Fetch product list from https://api.oemautomation.com:3001 to this section.</span>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AllProducts;
|
@ -1 +1 @@
|
|||||||
export {default as something} from './something';
|
export {default as AllProducts} from './allProducts';
|
||||||
|
Loading…
Reference in New Issue
Block a user