Skip to content

Commit

Permalink
fix: removed MUI tags buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
priyankarpal committed Jun 12, 2023
1 parent e3c1082 commit bc483ee
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/pages/ProjectsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import React, { useContext, useEffect, useState } from 'react';
import InfiniteScroll from 'react-infinite-scroll-component';
import { useSearchParams } from 'react-router-dom';
import { Button } from '@mui/material';
// import { Button } from '@mui/material';
import { ProjectCard } from '../components';
import projects from '../DB/projects.json';
import techStack from '../utils/techStack';
Expand Down Expand Up @@ -105,14 +105,16 @@ function ProjectsPage() {
</div>
<div className="flex flex-wrap justify-start md:justify-center m-4 gap-2 ">
{techStack.map((tech, index) => (
<Button
<button
type="button"
key={index.id}
onClick={() => handleOptionClick(tech)}
variant={selectedOptions.includes(tech) ? 'contained' : 'outlined'}
className="bg-primary hover:bg-slate-200"
className={`${
selectedOptions.includes(tech) ? 'bg-primary text-white' : 'border border-primary text-white'
} rounded-sm p-2`}
>
<span className={selectedOptions.includes(tech) ? 'text-white' : 'text-primary'}>{tech.toLowerCase()}</span>
</Button>
<span>{tech.toLowerCase()}</span>
</button>
))}
</div>

Expand Down

1 comment on commit bc483ee

@vercel
Copy link

@vercel vercel bot commented on bc483ee Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

projectshut – ./

projectshut-priyankarpal.vercel.app
projectshut-git-main-priyankarpal.vercel.app
projectshut.vercel.app

Please sign in to comment.