Skip to content

Commit 482287e

Browse files
authored
Update: New default header logo (#13)
1 parent 17e88b5 commit 482287e

5 files changed

Lines changed: 35 additions & 6 deletions

File tree

src/components/Header/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import React from 'react';
8-
import IconLogo from '../icons/IconLogo';
8+
import IconDefaultLogo from '../icons/IconDefaultLogo';
99
import { Button } from '../Button';
1010
import { VIEW_FOLDER, VIEW_SEARCH } from '../../constants';
1111
import type { View } from '../../flowTypes';
@@ -29,7 +29,7 @@ const Header = ({ view, searchQuery, canUpload, onSearch, onUpload, logoUrl, get
2929
<div className='buik-header'>
3030
<div className='buik-header-left'>
3131
<div className='buik-logo'>
32-
{logoUrl ? <img alt='' src={logoUrl} className='buik-logo-custom' /> : <IconLogo />}
32+
{logoUrl ? <img alt='' src={logoUrl} className='buik-logo-custom' /> : <IconDefaultLogo />}
3333
</div>
3434
<div className='buik-search'>
3535
<input

src/components/Header/Header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
.buik-is-small & {
2525
display: none;
2626
}
27+
28+
svg {
29+
display: block;
30+
}
2731
}
2832

2933
.buik-header-left {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import React from 'react';
88
import { BOX_BLUE } from '../../constants';
99
import type { IconType } from '../../flowTypes';
1010

11-
const IconLogo = ({ color = BOX_BLUE, height = 25, width = 45 }: IconType) =>
12-
<div className='logo'>
11+
const IconBoxLogo = ({ color = BOX_BLUE, height = 25, width = 45 }: IconType) =>
12+
<div>
1313
<svg height={height} width={width} viewBox='0 0 98 52' aria-labelledby='title desc' role='img'>
1414
<path
1515
fill={color}
@@ -32,4 +32,4 @@ const IconLogo = ({ color = BOX_BLUE, height = 25, width = 45 }: IconType) =>
3232
</svg>
3333
</div>;
3434

35-
export default IconLogo;
35+
export default IconBoxLogo;

src/components/icons/IconDefaultLogo.js

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/explorer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h1>Content Explorer</h1>
121121
document.querySelector('.explorer1').innerHTML = '';
122122
explorer1.show(folderId, token, {
123123
container: '.explorer1',
124-
logoUrl: 'https://d30y9cdsu7xlg0.cloudfront.net/png/12458-200.png'
124+
// logoUrl: 'https://d30y9cdsu7xlg0.cloudfront.net/png/12458-200.png'
125125
});
126126

127127
const explorer2 = new ContentExplorer();

0 commit comments

Comments
 (0)