react-admin-base-bootstrap 0.7.1 → 0.7.2
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.
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export default function StepList({ active, setActive, children }:
|
|
2
|
-
|
|
3
|
-
setActive: any;
|
|
4
|
-
children: any;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
export declare function StepItem({ title, translate, disabled }: {
|
|
7
|
-
title: any;
|
|
8
|
-
translate: any;
|
|
9
|
-
disabled: any;
|
|
10
|
-
}): JSX.Element;
|
|
1
|
+
export default function StepList({ active, setActive, children }: any): JSX.Element;
|
|
2
|
+
export declare function StepItem({ title, translate, disabled }: any): JSX.Element;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { FormattedMessage } from "react-intl";
|
|
|
4
4
|
const IndexContext = React.createContext(0);
|
|
5
5
|
const OnClickDataContext = React.createContext<[number, (a: Number) => void]>(null as any);
|
|
6
6
|
|
|
7
|
-
export default function StepList({ active, setActive, children }) {
|
|
7
|
+
export default function StepList({ active, setActive, children }: any) {
|
|
8
8
|
const onClickData = useMemo<[number, (a: Number) => void]>(() => [active, setActive], [active, setActive]);
|
|
9
9
|
|
|
10
10
|
return <ul className="step step-sm step-icon-sm step step-inline step-item-between mb-3">
|
|
@@ -18,7 +18,7 @@ export default function StepList({ active, setActive, children }) {
|
|
|
18
18
|
</ul>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export function StepItem({ title, translate, disabled }) {
|
|
21
|
+
export function StepItem({ title, translate, disabled }: any) {
|
|
22
22
|
const index = useContext(IndexContext);
|
|
23
23
|
const [ activeStep, onClickParent ] = useContext(OnClickDataContext);
|
|
24
24
|
|