mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +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>
|
||||
<ModalContent>
|
||||
<Container>
|
||||
<img src="/logo192.png" />
|
||||
<img
|
||||
// eslint-disable-next-line
|
||||
src={`${process.env.PUBLIC_URL}/logo192.png`}
|
||||
/>
|
||||
<TextContainer>
|
||||
<Line label="Version">{version}</Line>
|
||||
<Line label="Build date">{moment(buildTime).format('YYYY-MM-DD')}</Line>
|
||||
|
||||
@@ -132,7 +132,13 @@ export default function ToolBar({ toolbarPortalRef }) {
|
||||
return (
|
||||
<ToolbarContainer>
|
||||
<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 || [])
|
||||
.filter((x) => x.showInToolbar)
|
||||
.map((x) => (
|
||||
|
||||
Reference in New Issue
Block a user