Skip to content

Commit

Permalink
Merge pull request #552 from nwplus/qr-wallet
Browse files Browse the repository at this point in the history
only displays qr code if they are accepted and attending
  • Loading branch information
DonaldKLee authored Dec 23, 2023
2 parents e0e023f + 99f72cf commit 8be9437
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import head_decal from '../assets/cmdf_bannerdecal.svg'
import QrCode from '../components/QrCode'
import { useAuth } from '../utility/Auth'
// import Hackcamp2023BG from '../components/BackgroundImage'
import { APPLICATION_STATUS } from '../utility/Constants'

const HomeContainer = styled.div`
height: 100%;
Expand Down Expand Up @@ -37,7 +38,10 @@ export default withTheme(({ announcements, theme }) => {
{/*
<CommonLinks />
<Announcements announcements={announcements} /> */}
{isAuthed && user.uid && <QrCode userInfo={user} userId={user.uid} />}

{user?.status === APPLICATION_STATUS.accepted && isAuthed && user.uid && (
<QrCode userInfo={user} userId={user.uid} />
)}
</HomeContainer>
)
})

0 comments on commit 8be9437

Please sign in to comment.