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:
parent
c9c36971d8
commit
e8d0ee2eca
5 changed files with 11 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import React from "react";
|
||||
import { CSSProperties } from "react";
|
||||
|
||||
/**
|
||||
* Design tokens - centralized values for consistency.
|
||||
|
|
@ -54,7 +54,7 @@ const tokens = {
|
|||
radius3xl: "24px",
|
||||
} as const;
|
||||
|
||||
type StyleRecord = Record<string, React.CSSProperties>;
|
||||
type StyleRecord = Record<string, CSSProperties>;
|
||||
|
||||
// =============================================================================
|
||||
// Layout Styles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue