login google logo

This commit is contained in:
Виталий Лавшонок
2025-10-26 07:21:55 +03:00
parent 68a74771f3
commit 5b18fa2bd2
4 changed files with 26 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ interface ButtonProps {
text?: string;
className?: string;
onClick: () => void;
children?: React.ReactNode;
}
export const SecondaryButton: React.FC<ButtonProps> = ({
@@ -13,6 +15,7 @@ export const SecondaryButton: React.FC<ButtonProps> = ({
text = "",
className,
onClick,
children,
}) => {
return (
<label
@@ -39,7 +42,7 @@ export const SecondaryButton: React.FC<ButtonProps> = ({
"[&:focus-visible+*]:outline-liquid-brightmain",
)}
disabled={disabled}
onClick={() => {onClick()}}
onClick={() => { onClick() }}
/>
{/* Граница при выделении через tab */}
@@ -50,7 +53,7 @@ export const SecondaryButton: React.FC<ButtonProps> = ({
"px-[16px] py-[8px]",
)}
>
{text}
{children || text}
</div>
<div
className={cn(
@@ -58,7 +61,7 @@ export const SecondaryButton: React.FC<ButtonProps> = ({
disabled && "text-liquid-light"
)}
>
{text}
{children || text}
</div>
</div>
</label>