feature/IO-3499-React-19: Remove redundant forward refs in favor of React 19 built in ref prop
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { Slider } from "antd";
|
||||
import { forwardRef } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const CourtesyCarFuelComponent = (props, ref) => {
|
||||
const CourtesyCarFuelComponent = ({ ref, ...props }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const marks = {
|
||||
@@ -63,4 +62,4 @@ const CourtesyCarFuelComponent = (props, ref) => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
export default forwardRef(CourtesyCarFuelComponent);
|
||||
export default CourtesyCarFuelComponent;
|
||||
|
||||
Reference in New Issue
Block a user