Skip to content

Commit 70b5b31

Browse files
committed
Read only fix and slight header UI tweak
1 parent 14310b6 commit 70b5b31

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/components/ChallengeEditor/ChallengeViewTabs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ const ChallengeViewTabs = ({
9696
// OR if this isn't a non-self-service draft, permit launching if:
9797
// a) the current user is either the self-service copilot or is an admin AND
9898
// b) the challenge is approved
99-
const canLaunch = hasBillingAccount && !isReadOnly &&
99+
const canLaunch = enableEdit && hasBillingAccount && !isReadOnly &&
100100
((!isSelfService && isDraft) ||
101-
((isSelfServiceCopilot || enableEdit || isAdmin) &&
101+
((isSelfServiceCopilot || isAdmin) &&
102102
challenge.status.toUpperCase() === CHALLENGE_STATUS.APPROVED))
103103

104104
return (

src/components/Tab/Tab.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
background-color: #eaf6fd;
6363
border-radius: 4px 4px 0 0;
6464
border-bottom: 1px solid #d4d4d4;
65+
position: relative;
6566

6667
.item {
6768
// @include barlow;
@@ -94,7 +95,7 @@
9495
z-index: 100;
9596
display: block;
9697
position: absolute;
97-
top: 204px;
98+
top: 31px;
9899
}
99100
}
100101
}

src/components/Tab/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ const Tab = ({
7777

7878
return (
7979
<div className={styles.tabs}>
80-
<h1>Work Manager</h1>
81-
<hr />
8280
{tabComponent}
8381
</div>
8482
)

0 commit comments

Comments
 (0)