mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 08:13:57 +00:00
fix icon in electron app
This commit is contained in:
@@ -60,7 +60,10 @@ export default function AboutModal({ modalState }) {
|
|||||||
<ModalHeader modalState={modalState}>About DbGate</ModalHeader>
|
<ModalHeader modalState={modalState}>About DbGate</ModalHeader>
|
||||||
<ModalContent>
|
<ModalContent>
|
||||||
<Container>
|
<Container>
|
||||||
<img src="/logo192.png" />
|
<img
|
||||||
|
// eslint-disable-next-line
|
||||||
|
src={`${process.env.PUBLIC_URL}/logo192.png`}
|
||||||
|
/>
|
||||||
<TextContainer>
|
<TextContainer>
|
||||||
<Line label="Version">{version}</Line>
|
<Line label="Version">{version}</Line>
|
||||||
<Line label="Build date">{moment(buildTime).format('YYYY-MM-DD')}</Line>
|
<Line label="Build date">{moment(buildTime).format('YYYY-MM-DD')}</Line>
|
||||||
|
|||||||
@@ -132,7 +132,13 @@ export default function ToolBar({ toolbarPortalRef }) {
|
|||||||
return (
|
return (
|
||||||
<ToolbarContainer>
|
<ToolbarContainer>
|
||||||
<ConnectionModal modalState={modalState} />
|
<ConnectionModal modalState={modalState} />
|
||||||
{!electron && <ToolbarButtonExternalImage image="/logo192.png" onClick={showAbout} />}
|
{!electron && (
|
||||||
|
<ToolbarButtonExternalImage
|
||||||
|
// eslint-disable-next-line
|
||||||
|
image={`${process.env.PUBLIC_URL}/logo192.png`}
|
||||||
|
onClick={showAbout}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{(favorites || [])
|
{(favorites || [])
|
||||||
.filter((x) => x.showInToolbar)
|
.filter((x) => x.showInToolbar)
|
||||||
.map((x) => (
|
.map((x) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user