mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-04 14:11:22 +09:00
Per docs/plans/FRONTEND_UX_TAILWIND_CLEANUP_PLAN.md §8.5. React 18's automatic JSX runtime makes 'import React' unnecessary; removed it from the 142 files eslint flagged as 'React defined but never used' (named imports like useState preserved). Driven by an eslint --format json pass so only flagged files were touched. Lint warnings: 1603 -> 1461 (0 errors). Verified: npm run build passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
535 B
React
17 lines
535 B
React
|
|
export function InfoList({ children, className = '', style }) {
|
|
return <div className={`info-list ${className}`.trim()} style={style}>{children}</div>;
|
|
}
|
|
|
|
export function InfoItem({ label, value, mono = false, children }) {
|
|
const valueClass = ['info-value', mono && 'mono'].filter(Boolean).join(' ');
|
|
return (
|
|
<div className="info-item">
|
|
<span className="info-label">{label}</span>
|
|
{children ?? <span className={valueClass}>{value}</span>}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default InfoList;
|