Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaik Janipasha
AmendsenProject
Commits
74d22107
Unverified
Commit
74d22107
authored
May 18, 2019
by
Ryan Lieu
Committed by
GitHub
May 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added link to home on header logo (#162)
parent
3ee8861f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
index.tsx
amundsen_application/static/js/components/NavBar/index.tsx
+6
-6
styles.scss
amundsen_application/static/js/components/NavBar/styles.scss
+1
-0
index.spec.tsx
...lication/static/js/components/NavBar/tests/index.spec.tsx
+1
-1
No files found.
amundsen_application/static/js/components/NavBar/index.tsx
View file @
74d22107
...
...
@@ -50,12 +50,12 @@ export class NavBar extends React.Component<NavBarProps> {
<
div
className=
"row"
>
<
div
className=
"nav-bar"
>
<
div
id=
"nav-bar-left"
className=
"nav-bar-left"
>
{
AppConfig
.
logoPath
&&
<
img
id=
"logo-icon"
className=
"logo-icon"
src=
{
AppConfig
.
logoPath
}
/>
}
<
Link
to=
{
`/`
}
className=
"title-3"
>
AMUNDSEN
<
Link
to=
{
`/`
}
>
{
AppConfig
.
logoPath
&&
<
img
id=
"logo-icon"
className=
"logo-icon"
src=
{
AppConfig
.
logoPath
}
/>
}
<
span
className=
"title-3"
>
AMUNDSEN
</
span
>
</
Link
>
</
div
>
<
div
id=
"nav-bar-right"
className=
"nav-bar-right"
>
...
...
amundsen_application/static/js/components/NavBar/styles.scss
View file @
74d22107
...
...
@@ -55,4 +55,5 @@
.logo-icon
{
max-height
:
32px
;
max-width
:
144px
;
margin-right
:
20px
;
}
amundsen_application/static/js/components/NavBar/tests/index.spec.tsx
View file @
74d22107
...
...
@@ -106,7 +106,7 @@ describe('NavBar', () => {
});
it
(
'renders homepage Link with correct text'
,
()
=>
{
element
=
wrapper
.
find
(
'#nav-bar-left'
).
find
(
Link
);
element
=
wrapper
.
find
(
'#nav-bar-left'
).
find
(
Link
)
.
find
(
'.title-3'
)
;
expect
(
element
.
children
().
text
()).
toEqual
(
'AMUNDSEN'
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment