Upgrade to next 13.1 (#6265)
Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
c9c54db3a1
commit
d83411162d
55 files changed
+1025
-921
No files matched your search
@@ -30,23 +30,23 @@ export function AppStoreCategories({
|
||||
},
|
||||
}}
|
||||
renderItem={(category) => (
|
||||
<Link key={category.name} href={"/apps/categories/" + category.name}>
|
||||
<a
|
||||
data-testid={`app-store-category-${category.name}`}
|
||||
className="relative flex rounded-md"
|
||||
style={{ background: "radial-gradient(farthest-side at top right, #a2abbe 0%, #E3E3E3 100%)" }}>
|
||||
<div className="w-full self-center bg-[url('/noise.svg')] bg-cover bg-center bg-no-repeat px-6 py-4">
|
||||
{isLocaleReady ? (
|
||||
<h3 className="font-medium capitalize">{category.name}</h3>
|
||||
) : (
|
||||
<SkeletonText invisible />
|
||||
)}
|
||||
<p className="text-sm text-gray-500">
|
||||
{isLocaleReady ? t("number_apps", { count: category.count }) : <SkeletonText invisible />}{" "}
|
||||
<Icon.FiArrowRight className="inline-block h-4 w-4" />
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
<Link
|
||||
key={category.name}
|
||||
href={"/apps/categories/" + category.name}
|
||||
data-testid={`app-store-category-${category.name}`}
|
||||
className="relative flex rounded-md"
|
||||
style={{ background: "radial-gradient(farthest-side at top right, #a2abbe 0%, #E3E3E3 100%)" }}>
|
||||
<div className="w-full self-center bg-[url('/noise.svg')] bg-cover bg-center bg-no-repeat px-6 py-4">
|
||||
{isLocaleReady ? (
|
||||
<h3 className="font-medium capitalize">{category.name}</h3>
|
||||
) : (
|
||||
<SkeletonText invisible />
|
||||
)}
|
||||
<p className="text-sm text-gray-500">
|
||||
{isLocaleReady ? t("number_apps", { count: category.count }) : <SkeletonText invisible />}{" "}
|
||||
<Icon.FiArrowRight className="inline-block h-4 w-4" />
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -38,16 +38,14 @@ type BreadcrumbItemProps = {
|
||||
export const BreadcrumbItem = ({ children, href, listProps }: BreadcrumbItemProps) => {
|
||||
return (
|
||||
<li {...listProps}>
|
||||
<Link href={href}>
|
||||
<a>{children}</a>
|
||||
</Link>
|
||||
<Link href={href}>{children}</Link>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
export const BreadcrumbContainer = () => {
|
||||
const router = useRouter();
|
||||
const [breadcrumbs, setBreadcrumbs] = useState<{ href: string; label: string }[]>();
|
||||
const [, setBreadcrumbs] = useState<{ href: string; label: string }[]>();
|
||||
|
||||
useEffect(() => {
|
||||
const rawPath = router.asPath.split("?")[0]; // this will ignore any query params for now?
|
||||
|
||||
@@ -229,7 +229,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
|
||||
);
|
||||
|
||||
return props.href ? (
|
||||
<Link passHref href={props.href} shallow={shallow && shallow}>
|
||||
<Link passHref href={props.href} shallow={shallow && shallow} legacyBehavior>
|
||||
{element}
|
||||
</Link>
|
||||
) : (
|
||||
|
||||
@@ -18,16 +18,12 @@ export default function Credits() {
|
||||
return (
|
||||
<small className="mx-3 mt-1 mb-2 hidden text-[0.5rem] opacity-50 lg:block">
|
||||
© {new Date().getFullYear()}{" "}
|
||||
<Link href="https://go.cal.com/credits">
|
||||
<a target="_blank" className="hover:underline">
|
||||
{COMPANY_NAME}
|
||||
</a>
|
||||
<Link href="https://go.cal.com/credits" target="_blank" className="hover:underline">
|
||||
{COMPANY_NAME}
|
||||
</Link>{" "}
|
||||
{hasMounted && (
|
||||
<Link href="https://go.cal.com/releases">
|
||||
<a target="_blank" className="hover:underline">
|
||||
{CalComVersion}
|
||||
</a>
|
||||
<Link href="https://go.cal.com/releases" target="_blank" className="hover:underline">
|
||||
{CalComVersion}
|
||||
</Link>
|
||||
)}
|
||||
</small>
|
||||
|
||||
@@ -51,7 +51,7 @@ export function ListItem(props: ListItemProps) {
|
||||
);
|
||||
|
||||
return href ? (
|
||||
<Link passHref href={href}>
|
||||
<Link passHref href={href} legacyBehavior>
|
||||
{element}
|
||||
</Link>
|
||||
) : (
|
||||
@@ -79,19 +79,19 @@ export function ListLinkItem(props: ListLinkItemProps) {
|
||||
"group flex w-full items-center justify-between p-5 hover:bg-neutral-50",
|
||||
disabled ? "hover:bg-white" : ""
|
||||
)}>
|
||||
<Link passHref href={href}>
|
||||
<a
|
||||
className={classNames(
|
||||
"flex-grow truncate text-sm",
|
||||
disabled ? "pointer-events-none cursor-not-allowed opacity-30" : ""
|
||||
)}>
|
||||
<h1 className="text-sm font-semibold leading-none">{heading}</h1>
|
||||
<h2 className="min-h-4 mt-2 text-sm font-normal leading-none">
|
||||
{subHeading.substring(0, 100)}
|
||||
{subHeading.length > 100 && "..."}
|
||||
</h2>
|
||||
<div className="mt-2">{children}</div>
|
||||
</a>
|
||||
<Link
|
||||
passHref
|
||||
href={href}
|
||||
className={classNames(
|
||||
"flex-grow truncate text-sm",
|
||||
disabled ? "pointer-events-none cursor-not-allowed opacity-30" : ""
|
||||
)}>
|
||||
<h1 className="text-sm font-semibold leading-none">{heading}</h1>
|
||||
<h2 className="min-h-4 mt-2 text-sm font-normal leading-none">
|
||||
{subHeading.substring(0, 100)}
|
||||
{subHeading.length > 100 && "..."}
|
||||
</h2>
|
||||
<div className="mt-2">{children}</div>
|
||||
</Link>
|
||||
{actions}
|
||||
</li>
|
||||
|
||||
Reference in new issue
Block a user