chore: upgrade swr and so on

pull/13892/head
Joel 1 year ago
parent dcfadbd315
commit 6653b6e072

@ -1,12 +1,17 @@
import Main from './layout-main' import Main from './layout-main'
const DatasetDetailLayout = async ({ const DatasetDetailLayout = async (
children, props: {
params, children: React.ReactNode
}: { params: Promise<{ datasetId: string }>
children: React.ReactNode }
params: Promise<{ datasetId: string }> ) => {
}) => { const params = await props.params;
const {
children
} = props;
return <Main params={(await params)}>{children}</Main> return <Main params={(await params)}>{children}</Main>
} }
export default DatasetDetailLayout export default DatasetDetailLayout

@ -115,7 +115,6 @@ export const PortalToFollowElemTrigger = (
) => { ) => {
const context = usePortalToFollowElemContext() const context = usePortalToFollowElemContext()
const childrenRef = (children as any).props?.ref const childrenRef = (children as any).props?.ref
console.log(childrenRef)
const ref = useMergeRefs([context.refs.setReference, propRef, childrenRef]) const ref = useMergeRefs([context.refs.setReference, propRef, childrenRef])
// `asChild` allows the user to pass any element as the anchor // `asChild` allows the user to pass any element as the anchor

@ -20,6 +20,7 @@ const Billing: FC = () => {
(!enableBilling || !isCurrentWorkspaceManager) ? null : ['/billing/invoices'], (!enableBilling || !isCurrentWorkspaceManager) ? null : ['/billing/invoices'],
() => fetchBillingUrl().then(data => data.url), () => fetchBillingUrl().then(data => data.url),
) )
console.log(billingUrl)
return ( return (
<div> <div>

@ -41,7 +41,7 @@ export const getLocaleOnServer = async (): Promise<Locale> => {
if (!languages.length) { if (!languages.length) {
// Negotiator expects plain object so we need to transform headers // Negotiator expects plain object so we need to transform headers
const negotiatorHeaders: Record<string, string> = {} const negotiatorHeaders: Record<string, string> = {}
headers().forEach((value, key) => (negotiatorHeaders[key] = value)) (await headers()).forEach((value, key) => (negotiatorHeaders[key] = value))
// Use negotiator and intl-localematcher to get best locale // Use negotiator and intl-localematcher to get best locale
languages = new Negotiator({ headers: negotiatorHeaders }).languages() languages = new Negotiator({ headers: negotiatorHeaders }).languages()
} }

@ -114,7 +114,7 @@
"sharp": "^0.33.2", "sharp": "^0.33.2",
"shave": "^5.0.4", "shave": "^5.0.4",
"sortablejs": "^1.15.0", "sortablejs": "^1.15.0",
"swr": "^2.1.0", "swr": "^2.3.0",
"tailwind-merge": "^2.5.4", "tailwind-merge": "^2.5.4",
"use-context-selector": "^2.0.0", "use-context-selector": "^2.0.0",
"uuid": "^10.0.0", "uuid": "^10.0.0",

@ -284,7 +284,7 @@ importers:
specifier: ^1.15.0 specifier: ^1.15.0
version: 1.15.6 version: 1.15.6
swr: swr:
specifier: ^2.1.0 specifier: ^2.3.0
version: 2.3.2(react@19.0.0) version: 2.3.2(react@19.0.0)
tailwind-merge: tailwind-merge:
specifier: ^2.5.4 specifier: ^2.5.4

Loading…
Cancel
Save