refactor: import React types directly instead of namespace

Replace 'import React from "react"' with direct imports of
CSSProperties and ChangeEvent. This eliminates unused imports
and follows modern React patterns where the namespace import
is not required for JSX (React 17+).
This commit is contained in:
counterweight 2025-12-23 12:23:32 +01:00
parent c9c36971d8
commit e8d0ee2eca
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 11 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import React from "react";
import { CSSProperties } from "react";
/**
* Format satoshi amount with styled components.
@ -26,7 +26,7 @@ export function SatsDisplay({ sats }: { sats: number }) {
}
// Build the display with subtle leading zeros and prominent digits
const subtleStyle: React.CSSProperties = {
const subtleStyle: CSSProperties = {
opacity: 0.45,
fontWeight: 400,
};