Add component
This commit is contained in:
20
src/components/Common/Version.jsx
Normal file
20
src/components/Common/Version.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { theme } from "antd";
|
||||
import React from "react";
|
||||
import packageJson from "../../../package.json";
|
||||
|
||||
const Version = () => {
|
||||
const {
|
||||
token: { colorPrimary },
|
||||
} = theme.useToken();
|
||||
return (
|
||||
<div
|
||||
data-testid="versionContainer"
|
||||
className="cursor-default fixed top-1 right-1 z-20 m-1"
|
||||
style={{ color: colorPrimary }}
|
||||
>
|
||||
v{packageJson.version}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Version;
|
||||
Reference in New Issue
Block a user