Skip to content

Commit

Permalink
register button updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish7515 committed Mar 28, 2023
1 parent 2bbf278 commit 376013f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/Udyam/components/Events/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useState, useEffect } from 'react';
import { MdArrowForwardIos } from 'react-icons/md';
import { IoIosArrowBack } from 'react-icons/io';
import './../Nav/Nav.css';
import { GoogleLoginBTN } from '../../../EES/Navbar/googleauth';
import { Link } from 'react-router-dom';

const eventitem = new Map([
['DIGISIM', 0],
Expand Down Expand Up @@ -42,7 +44,7 @@ const data = [
{
title: 'COMMNET',
description: 'Become proficient in Network Architecture and MATLAB implementation of coding theory, compression algorithms, signal processing, modulation and demodulation techniques, designing and simulating analog circuits & filters to perform computations using CAD tools.',
registerLink: 'https://eesiitbhu.in/dashboard#events-register',
registerLink: 'https://eesiitbhu.in/dashboard#events-register',
psLink: 'https://drive.google.com/drive/folders/1w4W_C978jSe5LVkBmOMJRTSrvyIUgduN?usp=sharing',
submissionLink: ''
},
Expand Down Expand Up @@ -70,7 +72,7 @@ const data = [
{
title: 'FUNCKIT',
description: 'Test your problem-solving abilities through low-level programming and building gate-level circuitry to optimize the logic and hardware and decrease execution time.',
registerLink: 'https://eesiitbhu.in/dashboard#events-register',
registerLink: 'https://eesiitbhu.in/dashboard#events-register',
psLink: 'https://drive.google.com/drive/folders/1oo2LwNIK90RXok_s3CWPbhfIBXjopUmm?usp=sharing',
submissionLink: ''
}
Expand Down Expand Up @@ -243,7 +245,22 @@ function Events() {
<>PROBLEM STATEMENT</>
)}
</div>
<div className="register-link">{eventData.registerLink ? <a href={eventData.registerLink}>REGISTER</a> : <>REGISTER</>}</div>
{/* {window.sessionStorage.getItem('registered_email') == null ? */}
{/* <div className="register-link">{window.sessionStorage.getItem('registered_email') == null ? <>REGISTER {<script>function showalert(){alert(`Kindly Login first !`)} </script>}</> : <a href={eventData.registerLink}>REGISTER</a>}</div> */}
{window.sessionStorage.getItem('registered_email') == null ? (
<GoogleLoginBTN>
<Link to="#" className="register-link" style={{ textDecoration: 'none' }}>
{/* <BiQrScan className="info" /> */}
<p>REGISTER</p>
</Link>
</GoogleLoginBTN>
) : (
<a href={eventData.registerLink} className="register-link" style={{ textDecoration: 'none' }}>
{/* <BiQrScan className="info" /> */}
<p>REGISTER</p>
</a>
)}
;
<div className="udyam-event-submit">
{eventData.submissionLink ? (
<a href={eventData.submissionLink} target="_blank" rel="noreferrer">
Expand Down

0 comments on commit 376013f

Please sign in to comment.