feat : center btn list
This commit is contained in:
@@ -7,13 +7,13 @@ const ButtonList = ({
|
||||
setActiveId,
|
||||
}: ButtonListProps) => {
|
||||
return (
|
||||
<div className="w-full h-full gap-4 grid max-sm:grid-cols-1 max-md:grid-cols-2 md:grid-cols-4 ">
|
||||
<div className="w-full h-full gap-4 flex flex-wrap justify-center max-sm:grid max-sm:grid-cols-1 ">
|
||||
{ProductsList?.map((i) => {
|
||||
return (
|
||||
<Button
|
||||
key={i.id}
|
||||
active={i.id === activeId}
|
||||
extra="py-4 text-lg"
|
||||
extra="py-2 text-lg"
|
||||
onClick={() => setActiveId(i.id)}
|
||||
>
|
||||
{i.title}
|
||||
|
||||
@@ -7,7 +7,7 @@ const ListTutorials = ({
|
||||
}: ListTutorialsProps) => {
|
||||
return (
|
||||
<div className="w-full h-full mt-4">
|
||||
<ul className="grid grid-cols-2 gap-2 md:grid-cols-6 justify-center items-center">
|
||||
<ul className="flex flex-wrap max-sm:grid max-sm:grid-cols-1 gap-2 justify-center items-center">
|
||||
{tutorialList?.map((i) => {
|
||||
return (
|
||||
<li
|
||||
|
||||
Reference in New Issue
Block a user