Skip to content

Commit

Permalink
Rename 'isTestShown' by 'isTestTagShown'
Browse files Browse the repository at this point in the history
  • Loading branch information
subinasr committed May 7, 2024
1 parent 82ec4aa commit f13e0a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/components/SubNavbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ interface SubNavbarProps {

heading?: string;
description?: string;
isTestShown?: boolean;
isTestTagShown?: boolean;

homeLinkShown?: boolean;
}
Expand All @@ -104,7 +104,7 @@ function SubNavbar(props: SubNavbarProps) {
descriptionClassName,
descriptionContainerClassName,
description,
isTestShown = false,
isTestTagShown,
homeLinkShown,
} = props;

Expand Down Expand Up @@ -178,7 +178,7 @@ function SubNavbar(props: SubNavbarProps) {
</div>
</div>
)}
{isTestShown && <TestTag />}
{isTestTagShown && <TestTag />}
</div>
<div
ref={childrenRef}
Expand Down
1 change: 1 addition & 0 deletions app/components/TestTag/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.test-tag {
align-self: center;
flex-shrink: 0;
border-radius: var(--dui-border-radius-progress-bar);
background: var(--dui-color-complement3);
padding: var(--dui-spacing-small);
Expand Down
2 changes: 1 addition & 1 deletion app/views/EntryEdit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ function EntryEdit(props: Props) {
heading="Source"
description={lead?.title}
homeLinkShown
isTestShown={project?.isTest}
isTestTagShown={project?.isTest}
defaultActions={(
<>
<BackLink defaultLink="/">
Expand Down

0 comments on commit f13e0a0

Please sign in to comment.