Skip to content

Commit 433d285

Browse files
committed
show blue line for recently created projects for all screen sizes same like when have unread notifications
1 parent 10db6f2 commit 433d285

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/projects/list/components/Projects/ProjectsGridView.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ const ProjectsGridView = props => {
4040
sortable: false,
4141
renderText: item => {
4242
const url = `/projects/${item.id}`
43-
const recentlyCreated = moment().diff(item.createdAt, 'seconds') < 3600
4443
return (
4544
<Link to={url} className="spacing">
46-
{recentlyCreated && <span className="blue-border" />}
4745
{item.id}
4846
</Link>
4947
)
@@ -81,9 +79,10 @@ const ProjectsGridView = props => {
8179
// project notifications
8280
const notReadNotifications = filterReadNotifications(notifications)
8381
const unreadProjectUpdate = filterNotificationsByProjectId(notReadNotifications, item.id)
82+
const recentlyCreated = moment().diff(item.createdAt, 'seconds') < 3600
8483
return (
8584
<div className="spacing project-container">
86-
{unreadProjectUpdate.length > 0 && <span className="blue-border" />}
85+
{(recentlyCreated || unreadProjectUpdate.length > 0) && <span className="blue-border" />}
8786
<div className="project-title">
8887
<Link to={url} className="link-title">{_.unescape(item.name)}</Link>
8988
{code && <span className="item-ref-code txt-gray-md" onClick={() => { applyFilters({ keyword: code }) }} dangerouslySetInnerHTML={{ __html: code }} />}

0 commit comments

Comments
 (0)