Skip to content

Commit c36c8b3

Browse files
feat: replace coming soon buttons with explore now
1 parent 3ceb74b commit c36c8b3

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/Page/Resources.jsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -461,16 +461,16 @@ const ResourcesCards = () => {
461461
))}
462462
</div>
463463
</div>
464-
{['Notes', 'Roadmaps', 'Preparation', 'Research Paper', 'Useful APIs'].includes(resources.title) ? (
465-
<StyledButton disabled>
466-
<div className="inner">Coming Soon</div>
467-
</StyledButton>
468-
) : (
469-
<StyledButton onClick={() => (window.location.href = resources.link)}>
470-
<div className="blob1" />
471-
<div className="inner">Explore Now</div>
472-
</StyledButton>
473-
)}
464+
<StyledButton
465+
type="button"
466+
onClick={(event) => {
467+
event.preventDefault();
468+
window.location.href = resources.link;
469+
}}
470+
>
471+
<div className="blob1" />
472+
<div className="inner">Explore Now</div>
473+
</StyledButton>
474474
</div>
475475
<div className="dot" />
476476
</a>

0 commit comments

Comments
 (0)