fix: add missing ref parameter to SatSymbol forwardRef component (#22274)
- Fixed forwardRef render function to accept both props and ref parameters - Added ref prop to SVG element to properly forward the ref - Resolves React error: 'forwardRef render functions accept exactly two parameters: props and ref' Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
4dc22606d9
commit
f4b48e863b
1 file changed
+5
-1
@@ -1,8 +1,12 @@
|
||||
import React, { forwardRef } from "react";
|
||||
|
||||
export const SatSymbol = forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>(function SatSymbol(props) {
|
||||
export const SatSymbol = forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>(function SatSymbol(
|
||||
props,
|
||||
ref
|
||||
) {
|
||||
return (
|
||||
<svg
|
||||
ref={ref}
|
||||
className={props.className}
|
||||
id="Layer_1"
|
||||
data-name="Layer 1"
|
||||
|
||||
Reference in new issue
Block a user