@homefile/components-v2 2.8.39 → 2.8.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,8 +8,9 @@ import { ApplianceSteps, SimpleDynamicForm, FooterButtons, HomeAssistantPanelSte
|
|
|
8
8
|
import { homeAssistantSteps } from '../../../helpers';
|
|
9
9
|
import { useSimpleDynamicForm } from '../../../hooks';
|
|
10
10
|
export const HomeAssistantPanel = ({ children, currentForm, currentStep, onApplianceClick, onBack, onClose, onNext, onSave, backDisabled, nextDisabled, hasCompleted, isLoading }) => {
|
|
11
|
+
var _a, _b;
|
|
11
12
|
const [addedAppliances, updateAddedAppliances] = useState([]);
|
|
12
|
-
const
|
|
13
|
+
const title = (_b = (_a = homeAssistantSteps === null || homeAssistantSteps === void 0 ? void 0 : homeAssistantSteps[currentStep - 1]) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : "";
|
|
13
14
|
const text = `${t('homeAssistant.details')} ${title.toLowerCase()}:`;
|
|
14
15
|
const isAppliances = currentStep === 4;
|
|
15
16
|
useEffect(() => {
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export const HomeAssistantPanel = ({
|
|
|
36
36
|
isLoading
|
|
37
37
|
}: PropsWithChildren<HomeAssistantPanelI>) => {
|
|
38
38
|
const [addedAppliances, updateAddedAppliances] = useState<AppliancesType[]>([])
|
|
39
|
-
const
|
|
39
|
+
const title = homeAssistantSteps?.[currentStep - 1]?.title ?? "";
|
|
40
40
|
const text = `${t('homeAssistant.details')} ${title.toLowerCase()}:`
|
|
41
41
|
const isAppliances = currentStep === 4
|
|
42
42
|
|