We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b78b8 commit 3e05b2fCopy full SHA for 3e05b2f
components/Category/Categories.component.jsx
@@ -6,22 +6,17 @@ import { v4 as uuidv4 } from 'uuid';
6
* @param {Object} categories
7
*/
8
const Categories = ({ categories }) => {
9
-
10
return (
11
<>
12
13
<section className="container mx-auto bg-white">
14
15
<div className="flex ">
16
17
{categories.map(({ name }) => (
18
<div
19
key={uuidv4()}
20
className="flex flex-col justify-around p-6 cursor-pointer xs:w-1/2 md:w-1/3 xl:w-1/4"
21
>
22
<div className="flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline">
23
<p className="text-lg">{name}</p>
24
25
</div>
26
27
))}
0 commit comments