mirror of
https://github.com/documenso/documenso.git
synced 2026-07-27 02:15:05 +10:00
chore: merge main, resolve biome formatting conflicts
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { cva } from 'class-variance-authority';
|
||||
import { Loader } from 'lucide-react';
|
||||
import * as React from 'react';
|
||||
|
||||
import { cn } from '../lib/utils';
|
||||
|
||||
@@ -24,11 +23,9 @@ export interface SpinnerProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
||||
size?: SpinnerSize;
|
||||
}
|
||||
|
||||
const Spinner = React.forwardRef<SVGSVGElement, SpinnerProps>(
|
||||
({ className, size = 'default', ...props }, ref) => {
|
||||
return <Loader ref={ref} className={cn(spinnerVariants({ size }), className)} {...props} />;
|
||||
},
|
||||
);
|
||||
const Spinner = React.forwardRef<SVGSVGElement, SpinnerProps>(({ className, size = 'default', ...props }, ref) => {
|
||||
return <Loader ref={ref} className={cn(spinnerVariants({ size }), className)} {...props} />;
|
||||
});
|
||||
|
||||
Spinner.displayName = 'Spinner';
|
||||
|
||||
@@ -36,19 +33,13 @@ export interface SpinnerBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
spinnerProps?: SpinnerProps;
|
||||
}
|
||||
|
||||
const SpinnerBox = React.forwardRef<HTMLDivElement, SpinnerBoxProps>(
|
||||
({ className, spinnerProps, ...props }, ref) => {
|
||||
return (
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn('flex items-center justify-center rounded-lg', className)}
|
||||
{...props}
|
||||
>
|
||||
<Spinner {...spinnerProps} />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
);
|
||||
const SpinnerBox = React.forwardRef<HTMLDivElement, SpinnerBoxProps>(({ className, spinnerProps, ...props }, ref) => {
|
||||
return (
|
||||
<div ref={ref} className={cn('flex items-center justify-center rounded-lg', className)} {...props}>
|
||||
<Spinner {...spinnerProps} />
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
SpinnerBox.displayName = 'SpinnerBox';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user