react-bootstrap#NavLink JavaScript Examples
The following examples show how to use
react-bootstrap#NavLink.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: githubissueslist.js From RC4Community with Apache License 2.0 | 6 votes |
GithubIssue = ({ issue }) => {
return (
<Col className={`${styles.column} py-2 px-3 m-2 rounded`}>
<Row className={`${styles.item_container}`}>
<NavLink href={issue.html_url}>{issue.title}</NavLink>
</Row>
<Row className="d-flex align-items-center">
<Col xs="auto" className={`${styles.numbers}`}>
<span className="me-2">
<IssueIcon />
</span>
{issue.state}
</Col>
<Col xs="auto" className={`${styles.numbers}`}>#{issue.number}</Col>
<Col xs="auto" className={`me-3 ${styles.numbers}`}>
<span className="me-2">
<LikeIcon />
</span>
{issue.reactions['+1']}
</Col>
<Col xs="auto" className={`me-2 ${styles.numbers}`}>
<span className="me-2">
<CommentIcon />
</span>
{issue.comments}
</Col>
</Row>
</Col>
);
}
Example #2
Source File: githubpullreqeusts.js From RC4Community with Apache License 2.0 | 6 votes |
GithubPullReqeust = ({ pull }) => {
return (
<Col className={`${styles.column} py-2 px-3 m-2 rounded`}>
<Row className="d-flex align-items-center">
<Col xs="auto" className={`${styles.numbers}`}>
<a href={pull.user.html_url}>
<Image
className="rounded-circle"
src={pull.user.avatar_url}
width={40}
height={40}
/>
</a>
</Col>
<Col xs="auto" className={`${styles.username}`}>
<a href={pull.user.html_url}>
<span>{pull.user.login}</span>
</a>
</Col>
</Row>
<Row className={`${styles.item_container}`}>
<NavLink href={pull.html_url}>{pull.title}</NavLink>
</Row>
<Row className="d-flex align-items-center">
<Col xs="auto" className={`${styles.numbers}`}>
<span className="me-2">
<PullsIcon />
</span>
{pull.state}
</Col>
<Col xs="auto" className={`${styles.numbers}`}>
#{pull.number}
</Col>
</Row>
</Col>
);
}
Example #3
Source File: rocketchatlinkbutton.js From RC4Community with Apache License 2.0 | 6 votes |
RocketChatLinkButton = ({
children,
href = 'https://open.rocket.chat/',
...props
}) => {
return (
<NavLink target="_blank" href={href} {...props}>
{children}
</NavLink>
);
}
Example #4
Source File: githubrepo.js From RC4Community with Apache License 2.0 | 5 votes |
GithubRepo = ({data}) => {
return (
<div
className={`${styles.container} d-flex flex-wrap justify-content-center`}
>
<Col className={`${styles.column} py-2 px-3 m-2 rounded`}>
<Row className={`${styles.item_container}`}>
<NavLink href={data.html_url}>{data.full_name}</NavLink>
</Row>
<Row className="d-flex align-items-center">
<Col xs="auto" className={`${styles.numbers}`}>
<span className="me-2">
<IssueIcon />
</span>
{data.open_issues_count}
</Col>
<Col xs="auto" className={`me-1 ${styles.numbers}`}>
<span className="me-2">
<StarIcon />
</span>
{data.stargazers_count}
</Col>
<Col xs="auto" className={`me-2 ${styles.numbers}`}>
<span className="me-2">
<ForkIcon />
</span>
{data.forks_count}
</Col>
</Row>
{
(Array.isArray(data.topics) && (data.topics.length > 0 )) &&
(
<Row className={`${styles.md_container} p-1 d-flex align-items-center justify-content-start`}>
{data.topics.map((topic) => {
return (<Col xs="auto" className={`m-0 px-1`}>
<Badge pill bg="light" text="dark">
{topic}
</Badge>
</Col>)
})}
</Row>
)
}
<Row className={`${styles.md_container} p-1`}>
<span>
{data.description}
</span>
</Row>
</Col>
</div>
);
}