Skip to content

Commit

Permalink
feat: add Bazecor version in a visible place so that users and custom…
Browse files Browse the repository at this point in the history
…er support can check it (#470)
  • Loading branch information
AlexDygma committed Jul 21, 2023
1 parent a2a21bd commit 3349f13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/renderer/component/Version/Version.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { version } from "../../../../package.json";

function Version() {
return <div className="text-center">Bazecor v{version}</div>;
}

export default Version;
2 changes: 2 additions & 0 deletions src/renderer/views/Preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { RegularButton } from "../component/Button";
import { IconFloppyDisk } from "../component/Icon";

import Store from "../utils/Store";
import Version from "@Renderer/component/Version/Version";

const store = Store.getStore();

Expand Down Expand Up @@ -445,6 +446,7 @@ class Preferences extends React.Component {
pairingButton={<></>}
connected={connected}
/>
<Version />
</Col>
</Row>
</Container>
Expand Down

0 comments on commit 3349f13

Please sign in to comment.