mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-12-29 16:17:52 +01:00
fix title bar
This commit is contained in:
parent
6ea9f7ffb3
commit
9f7a72cc48
@ -43,7 +43,7 @@ export default class App extends PureComponent {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Titlebar />
|
{process.platform === 'darwin' && <Titlebar />}
|
||||||
<div className="app">
|
<div className="app">
|
||||||
<PosedRouter>
|
<PosedRouter>
|
||||||
<Home path="/" default />
|
<Home path="/" default />
|
||||||
|
@ -2,14 +2,10 @@ import './Titlebar.css'
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import pkg from '../../../package.json'
|
import pkg from '../../../package.json'
|
||||||
|
|
||||||
const Titlebar = () => {
|
const Titlebar = () => (
|
||||||
if (process.platform !== 'darwin') return
|
|
||||||
|
|
||||||
return (
|
|
||||||
<header className="titlebar">
|
<header className="titlebar">
|
||||||
<span className="header-title">{pkg.productName}</span>
|
<span className="header-title">{pkg.productName}</span>
|
||||||
</header>
|
</header>
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
export default Titlebar
|
export default Titlebar
|
||||||
|
Loading…
Reference in New Issue
Block a user