forked from TrueFiEng/devcon-raffle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add You don't have passport page (#28)
Co-authored-by: Bartlomiej Tarczynski <[email protected]>
- Loading branch information
1 parent
a6f9da9
commit 55483b5
Showing
11 changed files
with
88 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
packages/frontend/src/components/userActious/gitcoin/MissingGitcoinPassport.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from 'styled-components' | ||
import { Button } from '../../buttons' | ||
import { Colors } from '@/styles/colors' | ||
import { BackButton } from '@/components/buttons/BackButton' | ||
import { Form, FormRow, FormWrapper, Row } from '@/components/form' | ||
import { urls } from '@/constants/urls' | ||
|
||
interface Props { | ||
afterCreateClick: () => void | ||
} | ||
|
||
export const MissingGitcoinPassport = ({ afterCreateClick }: Props) => { | ||
const onCreateClick = () => { | ||
window.open(urls.gitcoin, '_blank') | ||
afterCreateClick() | ||
} | ||
|
||
return ( | ||
<Wrapper> | ||
<BackButtonRow> | ||
<BackButton /> | ||
<Form> | ||
<WarningHeader>You don't have a Gitcoin Passport</WarningHeader> | ||
<FormRow> | ||
<span>To finish placing a bid, please create a Gitcoin Passport.</span> | ||
</FormRow> | ||
<Button onClick={onCreateClick}>Create a Gitcoin Passport</Button> | ||
</Form> | ||
</BackButtonRow> | ||
</Wrapper> | ||
) | ||
} | ||
|
||
const BackButtonRow = styled(Row)` | ||
gap: 32px; | ||
` | ||
|
||
const Wrapper = styled(FormWrapper)` | ||
width: 465px; | ||
` | ||
|
||
const WarningHeader = styled.h2` | ||
color: ${Colors.RedDark}; | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters