Add non-functional mark as read button
This commit is contained in:
parent
c6e69496cf
commit
67e06ee50e
4 changed files with 23 additions and 12 deletions
|
|
@ -12,7 +12,6 @@ import {
|
||||||
} from '../constants.js';
|
} from '../constants.js';
|
||||||
import { formatDatetime } from '../../../utils.js';
|
import { formatDatetime } from '../../../utils.js';
|
||||||
|
|
||||||
// TODO add "Mark as read" button
|
|
||||||
class PostModal extends React.Component {
|
class PostModal extends React.Component {
|
||||||
modalListener = ::this.modalListener;
|
modalListener = ::this.modalListener;
|
||||||
readTimer = null;
|
readTimer = null;
|
||||||
|
|
@ -65,12 +64,16 @@ class PostModal extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div className="modal post-modal">
|
<div className="modal post-modal">
|
||||||
<div className="post">
|
<div className="post">
|
||||||
|
<div className="post__actions">
|
||||||
|
{/* TODO: make button functional */}
|
||||||
|
<span className="button read-button">Mark as read</span>
|
||||||
<span
|
<span
|
||||||
className="button post__close-button"
|
className="button post__close-button"
|
||||||
onClick={() => this.props.unSelectPost()}
|
onClick={() => this.props.unSelectPost()}
|
||||||
>
|
>
|
||||||
Close <i className="gg-close"></i>
|
Close <i className="gg-close"></i>
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
<div className="post__header">
|
<div className="post__header">
|
||||||
<h2 className={titleClassName}>{`${post.title} `}</h2>
|
<h2 className={titleClassName}>{`${post.title} `}</h2>
|
||||||
<div className="post__meta-info">
|
<div className="post__meta-info">
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,15 @@
|
||||||
|
|
||||||
cursor: initial;
|
cursor: initial;
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
padding: 20px 50px 0;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -81,9 +90,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__close-button {
|
&__close-button {
|
||||||
position: relative;
|
|
||||||
margin: 1% 2% 0 0;
|
|
||||||
align-self: flex-end;
|
|
||||||
background-color: $blue;
|
background-color: $blue;
|
||||||
color: $white;
|
color: $white;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,8 @@
|
||||||
padding: 2px 10px 5px 10px;
|
padding: 2px 10px 5px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.read-button {
|
||||||
|
margin: 20px 0 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
.read-button {
|
.read-button {
|
||||||
@extend .button;
|
@extend .button;
|
||||||
|
|
||||||
margin: 20px 0 0 0;
|
|
||||||
|
|
||||||
color: $white;
|
color: $white;
|
||||||
background-color: $green;
|
background-color: $green;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue