Make the project items openable on right click action
This commit is contained in:
parent
adc5fc857f
commit
0a9671bddc
@ -53,10 +53,13 @@ const Project = ({ repo, loading }) => {
|
|||||||
|
|
||||||
const renderProjects = () => {
|
const renderProjects = () => {
|
||||||
return repo.map((item, index) => (
|
return repo.map((item, index) => (
|
||||||
<div
|
<a
|
||||||
className="card shadow-lg compact bg-base-100 cursor-pointer"
|
className="card shadow-lg compact bg-base-100 cursor-pointer"
|
||||||
|
href={item.html_url}
|
||||||
key={index}
|
key={index}
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (config.googleAnalytics?.id) {
|
if (config.googleAnalytics?.id) {
|
||||||
ga.event({
|
ga.event({
|
||||||
@ -119,7 +122,7 @@ const Project = ({ repo, loading }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user