Skip to content

Commit

Permalink
fix: add react import to expandable text (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan authored Jul 5, 2023
1 parent f8fd1e4 commit f063b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expandableText/ExpandableText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from "react"
import React from "react"
import Markdown, { MarkdownOptions } from "markdown-to-jsx"
import "./ExpandableText.scss"

Expand Down Expand Up @@ -46,7 +46,7 @@ const moreLessButton = (
}

const ExpandableText = (props: ExpandableTextProps) => {
const [expanded, setExpanded] = useState(props.expand || false)
const [expanded, setExpanded] = React.useState(props.expand || false)
const maxLength = props.maxLength || 350
let button

Expand Down

0 comments on commit f063b95

Please sign in to comment.