mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-12-28 23:57: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
|
<header className="titlebar">
|
||||||
|
<span className="header-title">{pkg.productName}</span>
|
||||||
return (
|
</header>
|
||||||
<header className="titlebar">
|
)
|
||||||
<span className="header-title">{pkg.productName}</span>
|
|
||||||
</header>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Titlebar
|
export default Titlebar
|
||||||
|
Loading…
Reference in New Issue
Block a user