Make the project items openable on right click action

This commit is contained in:
Ariful Alam 2022-03-20 18:05:48 +06:00
parent adc5fc857f
commit 0a9671bddc

View File

@ -53,10 +53,13 @@ const Project = ({ repo, loading }) => {
const renderProjects = () => {
return repo.map((item, index) => (
<div
<a
className="card shadow-lg compact bg-base-100 cursor-pointer"
href={item.html_url}
key={index}
onClick={() => {
onClick={(e) => {
e.preventDefault();
try {
if (config.googleAnalytics?.id) {
ga.event({
@ -119,7 +122,7 @@ const Project = ({ repo, loading }) => {
</div>
</div>
</div>
</div>
</a>
));
};