Skip to content

Commit 0fefffd

Browse files
committed
fix: restore React value import in CallToActionSection
Biome auto-fix split 'import React, { useState }' into a type-only 'import type React' plus a value 'import { useState }'. Jest uses the classic JSX transform which requires React as a runtime value in scope; the type-only import stripped it out, causing ReferenceError in tests.
1 parent 910f98f commit 0fefffd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontends/main/src/page-components/LearningResourceExpanded/CallToActionSection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { env } from "@/env"
2-
import type React from "react"
3-
import { useState } from "react"
2+
import React, { useState } from "react"
43
import styled from "@emotion/styled"
54
import { default as NextImage } from "next/image"
65
import { useFeatureFlagEnabled, usePostHog } from "posthog-js/react"

0 commit comments

Comments
 (0)