@teambit/base-ui.routing.routing-provider
Advanced tools
Comparing version 1.0.3 to 1.0.4
export declare const useLink: () => import("react/jsx-runtime").JSX.Element; | ||
export declare const activeNavLink: () => import("react/jsx-runtime").JSX.Element; | ||
export declare const inactiveNavLink: () => import("react/jsx-runtime").JSX.Element; | ||
export declare const ActiveNavLink: () => import("react/jsx-runtime").JSX.Element; | ||
export declare const InactiveNavLink: () => import("react/jsx-runtime").JSX.Element; |
@@ -8,3 +8,3 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime"; | ||
}; | ||
export const activeNavLink = () => { | ||
export const ActiveNavLink = () => { | ||
const { NavLink, useLocation } = useRouting(); | ||
@@ -14,3 +14,3 @@ const { pathname } = useLocation(); | ||
}; | ||
export const inactiveNavLink = () => { | ||
export const InactiveNavLink = () => { | ||
const { NavLink } = useRouting(); | ||
@@ -17,0 +17,0 @@ return (_jsx(NavLink, { href: "https://tib.ved", activeStyle: { background: 'lightblue', borderRadius: 5, padding: 4 }, children: "inactive NavLink" })); |
{ | ||
"name": "@teambit/base-ui.routing.routing-provider", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://bit.cloud/teambit/base-ui/routing/routing-provider", | ||
@@ -9,11 +9,11 @@ "main": "dist/index.js", | ||
"name": "routing/routing-provider", | ||
"version": "1.0.3" | ||
"version": "1.0.4" | ||
}, | ||
"dependencies": { | ||
"@teambit/base-ui.routing.native-link": "1.0.0", | ||
"@teambit/base-ui.utils.is-browser": "1.0.0", | ||
"@teambit/base-ui.routing.native-nav-link": "1.0.3" | ||
"@teambit/base-ui.routing.native-nav-link": "1.0.3", | ||
"@teambit/base-ui.utils.is-browser": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@teambit/react.v17.react-env": "1.1.19" | ||
"@teambit/react.v17.react-env": "1.1.82" | ||
}, | ||
@@ -23,3 +23,3 @@ "peerDependencies": { | ||
}, | ||
"license": "SEE LICENSE IN LICENSE", | ||
"license": "SEE LICENSE IN UNLICENSED", | ||
"optionalDependencies": {}, | ||
@@ -26,0 +26,0 @@ "peerDependenciesMeta": {}, |
Sorry, the diff of this file is not supported yet
11941
18
237