mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-22 08:16:35 +03:00
fix bugs
This commit is contained in:
parent
81c649d102
commit
d7c4e9ad12
|
@ -5,7 +5,6 @@ import { host } from "./consts"
|
||||||
export const fetcher = axios.create(
|
export const fetcher = axios.create(
|
||||||
{
|
{
|
||||||
baseURL: host,
|
baseURL: host,
|
||||||
timeout: 1000,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,19 @@ export const ProductsView:React.FC = () =>{
|
||||||
console.log(getProducts)
|
console.log(getProducts)
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
<Card title="Card title" bordered={false}>
|
{
|
||||||
Card content
|
getProducts.map(el=> <Card title={el.name} bordered={true}>
|
||||||
</Card>
|
<div>
|
||||||
|
{el.category}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
el.characteristics == undefined? "":el.characteristics.toString()
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</Card>)
|
||||||
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user