forked from rage/java-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeadline.js
More file actions
29 lines (25 loc) · 717 Bytes
/
Copy pathDeadline.js
File metadata and controls
29 lines (25 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from "react"
import styled from "styled-components"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faClock as icon } from "@fortawesome/free-solid-svg-icons"
import withSimpleErrorBoundary from "../util/withSimpleErrorBoundary"
const DeadlineWrapper = styled.div`
margin-bottom: 1rem;
color: #6c757d;
font-size: 0.9rem;
font-weight: bold;
`
const StyledIcon = styled(FontAwesomeIcon)`
//vertical-align: middle;
margin-right: 0.25em;
font-size: 1em;
`
const Deadline = ({ children }) => {
return (
<DeadlineWrapper>
<StyledIcon icon={icon} />
Deadline: {children}
</DeadlineWrapper>
)
}
export default withSimpleErrorBoundary(Deadline)