Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed May 28, 2019
1 parent 6ea9f7f commit 9f7a72c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/renderer/App.jsx
Expand Up @@ -43,7 +43,7 @@ export default class App extends PureComponent {
render() {
return (
<>
<Titlebar />
{process.platform === 'darwin' && <Titlebar />}
<div className="app">
<PosedRouter>
<Home path="/" default />
Expand Down
14 changes: 5 additions & 9 deletions src/renderer/components/Titlebar.jsx
Expand Up @@ -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

0 comments on commit 9f7a72c

Please sign in to comment.