fix: minor bugs in the onboarding screens (#603)

This commit is contained in:
Aaryan Khandelwal 2023-03-30 13:55:50 +05:30 committed by GitHub
parent 63b7c1ee47
commit a94e38c093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 33 deletions

View file

@ -13,7 +13,7 @@ export const PrimaryButton: React.FC<ButtonProps> = ({
}) => (
<button
type={type}
className={`${className} border border-theme font-medium duration-300 ${
className={`${className} border font-medium duration-300 ${
size === "sm"
? "rounded px-3 py-2 text-xs"
: size === "md"
@ -22,12 +22,12 @@ export const PrimaryButton: React.FC<ButtonProps> = ({
} ${
disabled
? "cursor-not-allowed border-gray-300 bg-gray-300 text-black hover:border-gray-300 hover:border-opacity-100 hover:bg-gray-300 hover:bg-opacity-100 hover:text-black"
: ""
: "border-theme"
} ${
outline
? "bg-transparent hover:bg-theme hover:text-white"
: "bg-theme text-white hover:border-opacity-90 hover:bg-opacity-90"
} ${loading ? "cursor-wait" : ""}`}
: "bg-theme hover:border-opacity-90 hover:bg-opacity-90"
} ${!disabled && !outline ? "text-white" : ""} ${loading ? "cursor-wait" : ""}`}
onClick={onClick}
disabled={disabled || loading}
>