fix(logo): Use img tag for SVG instead of React component
This commit is contained in:
@@ -4,7 +4,7 @@ import { useSensorStore } from "../stores/sensorStore";
|
|||||||
import { VoltageDisplay } from "./VoltageDisplay";
|
import { VoltageDisplay } from "./VoltageDisplay";
|
||||||
import { BatteryStatus } from "./BatteryStatus";
|
import { BatteryStatus } from "./BatteryStatus";
|
||||||
import { LoginIndicator } from "./LoginIndicator";
|
import { LoginIndicator } from "./LoginIndicator";
|
||||||
import TCKLogo from "../../../../logo/tck_logo.svg?react";
|
import TCKLogo from "../../../../logo/tck_logo.svg";
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
const [currentTime, setCurrentTime] = useState(new Date());
|
const [currentTime, setCurrentTime] = useState(new Date());
|
||||||
@@ -38,9 +38,7 @@ export function Header() {
|
|||||||
<div className="bg-gray-950 border-b border-gray-700 px-2 py-1 flex items-center gap-2 text-xs">
|
<div className="bg-gray-950 border-b border-gray-700 px-2 py-1 flex items-center gap-2 text-xs">
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
<div className="flex items-center gap-1">
|
<div className="flex items-center gap-1">
|
||||||
<div className="w-6 h-6">
|
<img src={TCKLogo} alt="TCK" className="w-6 h-6" />
|
||||||
<TCKLogo className="w-full h-full" />
|
|
||||||
</div>
|
|
||||||
<span className="text-white font-semibold">RTU</span>
|
<span className="text-white font-semibold">RTU</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user