@local-civics/hub-ui 0.1.79 → 0.1.81
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/dist/index.d.ts +0 -3
- package/dist/index.js +0 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -998,8 +998,6 @@ declare const Widget: (props: WidgetProps) => JSX.Element;
|
|
|
998
998
|
*/
|
|
999
999
|
type AuthLayoutProps = {
|
|
1000
1000
|
isLoading?: boolean;
|
|
1001
|
-
tenantName?: string;
|
|
1002
|
-
impactStatement?: string;
|
|
1003
1001
|
pathname?: string;
|
|
1004
1002
|
page?: "profile" | "explore" | "calendar";
|
|
1005
1003
|
disabled?: boolean;
|
|
@@ -1009,7 +1007,6 @@ type AuthLayoutProps = {
|
|
|
1009
1007
|
main?: React__default.ReactNode;
|
|
1010
1008
|
outlet?: React__default.ReactNode;
|
|
1011
1009
|
children?: React__default.ReactNode;
|
|
1012
|
-
onOnboarding?: () => void;
|
|
1013
1010
|
onHome?: () => void;
|
|
1014
1011
|
onProfile?: () => void;
|
|
1015
1012
|
onExplore?: () => void;
|
package/dist/index.js
CHANGED
|
@@ -5635,17 +5635,6 @@ const TaskList = (props) => {
|
|
|
5635
5635
|
};
|
|
5636
5636
|
|
|
5637
5637
|
const AuthLayout = (props) => {
|
|
5638
|
-
const onOnboarding = () => props.onOnboarding && props.onOnboarding();
|
|
5639
|
-
React.useEffect(() => {
|
|
5640
|
-
var _a;
|
|
5641
|
-
if (!props.tenantName) {
|
|
5642
|
-
return;
|
|
5643
|
-
}
|
|
5644
|
-
if (!props.impactStatement && !((_a = props.pathname) == null ? void 0 : _a.endsWith("onboarding"))) {
|
|
5645
|
-
onOnboarding();
|
|
5646
|
-
return;
|
|
5647
|
-
}
|
|
5648
|
-
}, [props.tenantName, props.impactStatement, props.pathname]);
|
|
5649
5638
|
return /* @__PURE__ */ React.createElement("main", { className: "relative h-screen w-full bg-white font-proxima" }, /* @__PURE__ */ React.createElement(Loader, { isLoading: props.isLoading }, /* @__PURE__ */ React.createElement(NavBar, null, /* @__PURE__ */ React.createElement(NavLink, { disabled: !props.onHome || props.disabled, name: "home", onClick: props.onHome }), props.onFAQ && /* @__PURE__ */ React.createElement(NavLink, { name: "faq", onClick: props.onFAQ }), props.onPrivacy && /* @__PURE__ */ React.createElement(NavLink, { name: "privacy", onClick: props.onPrivacy }), props.onTerms && /* @__PURE__ */ React.createElement(NavLink, { name: "terms", onClick: props.onTerms }), props.onProfile && /* @__PURE__ */ React.createElement(
|
|
5650
5639
|
NavLink,
|
|
5651
5640
|
{
|