Prechádzať zdrojové kódy

br added between price tag and input quantity

miskson 3 rokov pred
rodič
commit
7856b6d66c
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      hw18-react-store/src/App.js

+ 1 - 3
hw18-react-store/src/App.js

@@ -264,7 +264,7 @@ const CartItem = ({cart:{_id, name, price, images}, count: {count}, onChange, on
             {images && images[0] && images[0].url && <img className='GoodImg' src={backendURL + '/' + images[0].url} />}
             <br/>
             <strong>Цена: {price * count}</strong>
-            &nbsp;
+            <br/>
             <label>Кол-во покупки: <input type="number" value={count} min="1" onInput={(e) => onChange({_id, name, price, images}, e.target.value)}/></label>
             <br/>
             <button>Заказать</button>
@@ -299,9 +299,7 @@ const Main = () =>
         <Aside />
         <Content>
             <CCategory />
-            ТУТ ДЛОЖЕН бЫТЬ ЦКАРТ
             <CCart />
-            {/* <Cart /> */}
         </Content>
     </main>