mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Added tests for buttons
This commit is contained in:
@@ -16,6 +16,7 @@ export default function Button(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<button
|
||||
data-testid="mattrixwv-button"
|
||||
{...buttonProps}
|
||||
disabled={disabled}
|
||||
className={clsx(
|
||||
@@ -23,7 +24,7 @@ export default function Button(props: ButtonProps){
|
||||
//Rounding
|
||||
{
|
||||
"rounded-sm": rounding === "sm",
|
||||
"rounded": rounding === "md",
|
||||
"rounded-md": rounding === "md",
|
||||
"rounded-lg": rounding === "lg",
|
||||
"rounded-full": rounding === "full"
|
||||
},
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function DangerButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-danger-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function DarkButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-dark-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function InfoButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-info-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function LightButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-light-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function MoltenButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-molten-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function PrimaryButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-primary-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function SecondaryButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-secondary-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function SuccessButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-success-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function TertiaryButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-tertiary-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
@@ -13,6 +13,7 @@ export default function WarningButton(props: ButtonProps){
|
||||
|
||||
return (
|
||||
<Button
|
||||
data-testid="mattrixwv-warning-button"
|
||||
{...props}
|
||||
className={clsx(
|
||||
"transition duration-300",
|
||||
|
||||
Reference in New Issue
Block a user