-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add links to open position when none
- Loading branch information
1 parent
ed598b6
commit c245322
Showing
6 changed files
with
58 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react' | ||
import { Typography } from '@material-ui/core' | ||
import Link from 'next/link' | ||
|
||
import useStyles from './useStyles' | ||
|
||
interface NoPositionProps { | ||
noPositionText: string | ||
ctaText: string | ||
ctaLink: string | ||
} | ||
|
||
const NoPosition: React.FC<NoPositionProps> = ({ noPositionText, ctaText, ctaLink }) => { | ||
const classes = useStyles() | ||
|
||
return ( | ||
<div className={classes.noPositionContainer}> | ||
<Typography variant="body1" color="textSecondary"> | ||
{noPositionText} | ||
</Typography> | ||
|
||
<div> | ||
<Typography variant="body1" color="primary" component="span"> | ||
<Link href={ctaLink}>Click here</Link> | ||
</Typography> | ||
<Typography variant="body1" color="textSecondary" component="span"> | ||
to {ctaText} | ||
</Typography> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default NoPosition |
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