mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-10 18:36:33 +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(
|
||||
{
|
||||
baseURL: host,
|
||||
timeout: 1000,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -8,9 +8,19 @@ export const ProductsView:React.FC = () =>{
|
|||
console.log(getProducts)
|
||||
return(
|
||||
<div>
|
||||
<Card title="Card title" bordered={false}>
|
||||
Card content
|
||||
</Card>
|
||||
{
|
||||
getProducts.map(el=> <Card title={el.name} bordered={true}>
|
||||
<div>
|
||||
{el.category}
|
||||
</div>
|
||||
<div>
|
||||
{
|
||||
el.characteristics == undefined? "":el.characteristics.toString()
|
||||
}
|
||||
</div>
|
||||
</Card>)
|
||||
}
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user