mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-12-28 07:37:51 +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() {
|
||||
return (
|
||||
<>
|
||||
<Titlebar />
|
||||
{process.platform === 'darwin' && <Titlebar />}
|
||||
<div className="app">
|
||||
<PosedRouter>
|
||||
<Home path="/" default />
|
||||
|
@ -2,14 +2,10 @@ import './Titlebar.css'
|
||||
import React from 'react'
|
||||
import pkg from '../../../package.json'
|
||||
|
||||
const Titlebar = () => {
|
||||
if (process.platform !== 'darwin') return
|
||||
|
||||
return (
|
||||
<header className="titlebar">
|
||||
<span className="header-title">{pkg.productName}</span>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
const Titlebar = () => (
|
||||
<header className="titlebar">
|
||||
<span className="header-title">{pkg.productName}</span>
|
||||
</header>
|
||||
)
|
||||
|
||||
export default Titlebar
|
||||
|
Loading…
Reference in New Issue
Block a user