fix arrow direction

This commit is contained in:
2025-11-18 22:34:21 +03:00
parent d4e2105c03
commit 1cb9f16f98

View File

@@ -1,4 +1,4 @@
import { RightOutlined } from "@ant-design/icons"; import { LeftOutlined, RightOutlined } from "@ant-design/icons";
import { Form, Input } from "antd"; import { Form, Input } from "antd";
import ProInputCard from "components/ProInputCard/ProInputCard.tsx"; import ProInputCard from "components/ProInputCard/ProInputCard.tsx";
import { selectCart, updateSpecialRequest } from "features/order/orderSlice.ts"; import { selectCart, updateSpecialRequest } from "features/order/orderSlice.ts";
@@ -15,7 +15,7 @@ export default function SpecialRequestCard() {
const { isDesktop } = useBreakPoint(); const { isDesktop } = useBreakPoint();
const dispatch = useAppDispatch(); const dispatch = useAppDispatch();
const { specialRequest } = useAppSelector(selectCart); const { specialRequest } = useAppSelector(selectCart);
const { isRTL } = useAppSelector((state) => state.locale);
const [isSpecialRequestOpen, setIsSpecialRequestOpen] = useState(false); const [isSpecialRequestOpen, setIsSpecialRequestOpen] = useState(false);
const handleSpecialRequestSave = (value: string) => { const handleSpecialRequestSave = (value: string) => {
@@ -48,7 +48,7 @@ export default function SpecialRequestCard() {
className={styles.editButton} className={styles.editButton}
onClick={() => setIsSpecialRequestOpen(true)} onClick={() => setIsSpecialRequestOpen(true)}
> >
<u>{t("cart.editNote")}</u> <RightOutlined /> <u>{t("cart.editNote")}</u> {isRTL ? <LeftOutlined /> : <RightOutlined />}
</div> </div>
} }
/> />