@loadsmart/loadsmart-ui 7.3.0 → 7.3.1
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.
package/package.json
CHANGED
|
@@ -210,7 +210,7 @@ interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
210
210
|
lazy?: boolean
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps) {
|
|
213
|
+
function PanelsItem({ children, name, lazy = false, ...props }: PanelsItemProps) {
|
|
214
214
|
const { activeTab } = useContext(TabContext)
|
|
215
215
|
|
|
216
216
|
const hidden = activeTab !== name
|
|
@@ -222,10 +222,6 @@ function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps) {
|
|
|
222
222
|
)
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
PanelsItem.defaultProps = {
|
|
226
|
-
lazy: false,
|
|
227
|
-
}
|
|
228
|
-
|
|
229
225
|
export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps {
|
|
230
226
|
activeTab?: string
|
|
231
227
|
onTabChange?: (tab: string) => void
|