Skip to content

Commit

Permalink
Add comments to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Mar 3, 2025
1 parent 4c0a54b commit de32b23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ export function SearchText ({ text }) {

// this is one of the slowest components to render
export default memo(function Text ({ rel = UNKNOWN_LINK_REL, imgproxyUrls, children, tab, itemId, outlawed, topLevel }) {
// would the text overflow on the current screen size?
const [overflowing, setOverflowing] = useState(false)
const router = useRouter()
// should we show the full text?
const [show, setShow] = useState(false)
const containerRef = useRef(null)

const router = useRouter()
const [mathJaxPlugin, setMathJaxPlugin] = useState(null)

// we only need mathjax if there's math content between $$ tags
Expand Down

0 comments on commit de32b23

Please sign in to comment.