mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
SECONDARY
This commit is contained in:
@@ -7,7 +7,7 @@ import IconProp from 'Common/Types/Icon/IconProp';
|
||||
|
||||
export enum ButtonStyleType {
|
||||
PRIMARY,
|
||||
SECONDRY,
|
||||
SECONDARY,
|
||||
OUTLINE,
|
||||
NORMAL,
|
||||
DANGER,
|
||||
@@ -152,7 +152,7 @@ const Button: FunctionComponent<ComponentProps> = ({
|
||||
}
|
||||
}
|
||||
|
||||
if (buttonStyle === ButtonStyleType.SECONDRY) {
|
||||
if (buttonStyle === ButtonStyleType.SECONDARY) {
|
||||
loadingIconClassName += ` text-indigo-500`;
|
||||
buttonStyleCssClass = `inline-flex items-center rounded-md border border-transparent bg-indigo-100 text-sm font-medium text-indigo-700 ${
|
||||
disabled ? 'hover:bg-indigo-200' : ''
|
||||
|
||||
@@ -90,11 +90,11 @@ describe('Button', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('it should have buttonStyle SECONDRY', () => {
|
||||
test('it should have buttonStyle SECONDARY', () => {
|
||||
render(
|
||||
<Button
|
||||
dataTestId="test-id"
|
||||
buttonStyle={ButtonStyleType.SECONDRY}
|
||||
buttonStyle={ButtonStyleType.SECONDARY}
|
||||
/>
|
||||
);
|
||||
const testId: HTMLElement = screen.getByTestId('test-id');
|
||||
|
||||
Reference in New Issue
Block a user