Skip to content

Commit 687e1c8

Browse files
GeneAIclaude
authored andcommitted
fix: Resolve ESLint warnings and add inline style config
- Remove unused isGenerating state and setIsGenerating calls - Remove unused theme variable from Navigation.tsx - Escape apostrophes in JSX text content - Add ESLint config to allow inline styles for dynamic values/gradients 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5a4b7fd commit 687e1c8

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

website/app/dashboard/sbar/page.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default function SBARWizardPage() {
5454
});
5555

5656
const [finalReport, setFinalReport] = useState<string | null>(null);
57-
const [isGenerating, setIsGenerating] = useState(false);
5857

5958
const updateField = (field: keyof WizardState['data'], value: string) => {
6059
setState(prev => ({
@@ -133,8 +132,6 @@ export default function SBARWizardPage() {
133132
};
134133

135134
const generateReport = async () => {
136-
setIsGenerating(true);
137-
138135
// Build the report
139136
const { data } = state;
140137
const now = new Date();
@@ -208,7 +205,6 @@ export default function SBARWizardPage() {
208205
// Simulate generation delay
209206
await new Promise(resolve => setTimeout(resolve, 500));
210207
setFinalReport(report);
211-
setIsGenerating(false);
212208
};
213209

214210
const copyReport = () => {
@@ -358,7 +354,7 @@ export default function SBARWizardPage() {
358354
<span className="text-indigo-600">🩺</span>
359355
Current Situation
360356
</h3>
361-
<p className="text-sm text-gray-600 mb-4">Describe the patient's current condition and what brought them to your attention</p>
357+
<p className="text-sm text-gray-600 mb-4">Describe the patient&apos;s current condition and what brought them to your attention</p>
362358

363359
{/* Patient ID */}
364360
<div className="mb-4">
@@ -414,7 +410,7 @@ export default function SBARWizardPage() {
414410
value={state.data.chiefComplaint}
415411
onChange={(e) => updateField('chiefComplaint', e.target.value)}
416412
className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500"
417-
placeholder="What is the patient's current condition? What brought them to your attention?"
413+
placeholder="What is the patient&apos;s current condition? What brought them to your attention?"
418414
/>
419415
</div>
420416

website/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useTheme } from '@/lib/theme-provider';
77
export default function Navigation() {
88
const [isScrolled, setIsScrolled] = useState(false);
99
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
10-
const { theme, setTheme, resolvedTheme } = useTheme();
10+
const { setTheme, resolvedTheme } = useTheme();
1111

1212
useEffect(() => {
1313
const handleScroll = () => {

website/eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ const eslintConfig = [
2020
"next-env.d.ts",
2121
],
2222
},
23+
{
24+
rules: {
25+
// Allow inline styles for dynamic values and complex gradients
26+
// that cannot be easily expressed with Tailwind utility classes
27+
"react/style-prop-object": "off",
28+
"@next/next/no-css-inline": "off",
29+
},
30+
},
2331
];
2432

2533
export default eslintConfig;

0 commit comments

Comments
 (0)