feature/IO-3255-simplified-parts-management - Cleanup / Bug fixes

This commit is contained in:
Dave
2025-08-21 14:57:55 -04:00
parent 43d5a77d60
commit 6942d6e4f9
6 changed files with 310 additions and 58 deletions

View File

@@ -4,13 +4,8 @@ import parsePhoneNumber from "libphonenumber-js";
import { forwardRef } from "react";
import "./phone-form-item.styles.scss";
function FormItemPhone(props) {
return (
<Input
// country="ca" ref={ref} className="ant-input"
{...props}
/>
);
function FormItemPhone(props, ref) {
return <Input ref={ref} {...props} />;
}
export default forwardRef(FormItemPhone);

View File

@@ -1,6 +1,5 @@
import { AlertOutlined, BulbOutlined } from "@ant-design/icons";
import { Button, Layout, Space } from "antd";
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
@@ -17,18 +16,7 @@ const mapStateToProps = createStructuredSelector({
export function GlobalFooter({ isPartsEntry }) {
const { t } = useTranslation();
useEffect(() => {
// Canny Not Required on Parts Entry
if (isPartsEntry) return;
window.Canny("initChangelog", {
appID: "680bd2c7ee501290377f6686",
position: "top",
align: "left",
theme: "light" // options: light [default], dark, auto
});
}, [isPartsEntry]);
if (isPartsEntry) {
return (
<Footer>