fix(types): resolve typecheck errors after is_temporary removal
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c56d5718b8
commit
b1e9d74857
4 changed files with 3 additions and 6 deletions
|
|
@ -104,7 +104,7 @@ export const getAdminOverviewRouter = () => {
|
|||
value: activeAccess.toLocaleString(),
|
||||
},
|
||||
{
|
||||
changeLabel: `${temporaryUsers} temporary`,
|
||||
changeLabel: `${activeAccess} active`,
|
||||
id: "admin-access",
|
||||
label: "Admin Grants",
|
||||
value: adminAccess.toLocaleString(),
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ describe("Layout", () => {
|
|||
data: baseOrganizationData,
|
||||
isLoading: false,
|
||||
error: null,
|
||||
} as ReturnType<typeof useOrganization>);
|
||||
} as unknown as ReturnType<typeof useOrganization>);
|
||||
});
|
||||
|
||||
it("renders the layout with children", () => {
|
||||
|
|
@ -142,7 +142,7 @@ describe("Layout", () => {
|
|||
},
|
||||
isLoading: false,
|
||||
error: null,
|
||||
} as ReturnType<typeof useOrganization>);
|
||||
} as unknown as ReturnType<typeof useOrganization>);
|
||||
|
||||
renderWithProviders(<Layout />);
|
||||
|
||||
|
|
|
|||
|
|
@ -451,7 +451,6 @@ function RecentProjectsSection() {
|
|||
export function MainNavigation({ isCollapsed }: { isCollapsed: boolean }) {
|
||||
const location = useLocation();
|
||||
const isReadOnly = useIsReadOnlyUser();
|
||||
const user = useUser();
|
||||
const { t } = useTranslation("navigation");
|
||||
const { mutate: createCheckout, isPending: checkoutPending } = useCreateCheckoutSession();
|
||||
const { data: organizationData } = useOrganization();
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import { useEffect, useState } from "react";
|
|||
import { useMaybeUpgradeBlock } from "../contexts/UpgradeBlockContext";
|
||||
import { useOrganization } from "../hooks/organization";
|
||||
import { useCreateCheckoutSession, useTrialExpiration } from "../hooks/stripe";
|
||||
import { useMaybeUser } from "../providers/UserStoreProvider";
|
||||
|
||||
const MODAL_INTERVAL_MS = 15 * 60 * 1000; // 15 minutes
|
||||
const LAST_SHOWN_KEY = "trial-upsell-modal-last-shown";
|
||||
|
|
@ -43,7 +42,6 @@ export function TrialUpsellModal() {
|
|||
const [isOpen, setIsOpen] = useState(false);
|
||||
const { daysRemaining } = useTrialExpiration();
|
||||
const { data: organizationData } = useOrganization();
|
||||
const user = useMaybeUser();
|
||||
const upgradeBlock = useMaybeUpgradeBlock();
|
||||
const { mutate: createCheckout, isPending: checkoutPending } = useCreateCheckoutSession();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue