chore(root): migrate to biome
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Suspense } from 'react';
|
||||
import { Widget, WidgetHead } from '@/components/widget';
|
||||
import { cn } from '@/utils/cn';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
const withLoadingWidget = <P,>(Component: React.ComponentType<P>) => {
|
||||
const WithLoadingWidget: React.ComponentType<P> = (props) => {
|
||||
@@ -14,7 +14,7 @@ const withLoadingWidget = <P,>(Component: React.ComponentType<P>) => {
|
||||
typeof props === 'object' &&
|
||||
'className' in props &&
|
||||
typeof props.className === 'string' &&
|
||||
props?.className
|
||||
props?.className,
|
||||
)}
|
||||
>
|
||||
<WidgetHead>
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Suspense } from 'react';
|
||||
|
||||
const withSuspense = <P,>(
|
||||
Component: React.ComponentType<P>,
|
||||
Fallback: React.ComponentType<P>
|
||||
Fallback: React.ComponentType<P>,
|
||||
) => {
|
||||
const WithSuspense: React.ComponentType<P> = (props) => {
|
||||
const fallback = <Fallback {...(props as any)} />;
|
||||
|
||||
Reference in New Issue
Block a user