replace variant success with accent

This commit is contained in:
Abhinav 2022-06-15 14:45:34 +05:30
parent 0bae3501d7
commit 3ecb5f02ff
7 changed files with 12 additions and 12 deletions

View file

@ -146,7 +146,7 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
proceed: {
text: constants.DOWNLOAD,
action: handleCollectionAction(CollectionActions.DOWNLOAD),
variant: 'success',
variant: 'accent',
},
close: {
text: constants.CANCEL,

View file

@ -41,7 +41,7 @@ export default function HelpSection() {
proceed: {
text: constants.DOWNLOAD,
action: downloadApp,
variant: 'success',
variant: 'accent',
},
close: {
text: constants.CLOSE,

View file

@ -83,7 +83,7 @@ function PlanSelector(props: Props) {
close: { text: 'close', variant: 'danger' },
proceed: {
text: constants.REOPEN_PLAN_SELECTOR_MODAL,
variant: 'success',
variant: 'accent',
action: onReopenClick,
},
});
@ -128,7 +128,7 @@ function PlanSelector(props: Props) {
props.setLoading,
props.closeModal
),
variant: 'success',
variant: 'accent',
},
close: { text: constants.CANCEL },
});

View file

@ -39,7 +39,7 @@ export function ManageSubscription({ subscription, ...props }) {
props.closeModal,
props.setLoading
),
variant: 'success',
variant: 'accent',
},
close: {
text: constants.CANCEL,

View file

@ -148,7 +148,7 @@ export default function Upload(props: Props) {
proceed: {
text: constants.DOWNLOAD_APP,
action: downloadApp,
variant: 'success',
variant: 'accent',
},
});
} else {

View file

@ -218,7 +218,7 @@ export default function Gallery() {
proceed: {
text: constants.LOGIN,
action: logoutUser,
variant: 'success',
variant: 'accent',
},
});

View file

@ -190,7 +190,7 @@ export async function cancelSubscription(
setDialogMessage({
title: constants.SUCCESS,
content: constants.SUBSCRIPTION_CANCEL_SUCCESS,
close: { variant: 'success' },
close: { variant: 'accent' },
});
} catch (e) {
setDialogMessage({
@ -215,7 +215,7 @@ export async function activateSubscription(
setDialogMessage({
title: constants.SUCCESS,
content: constants.SUBSCRIPTION_ACTIVATE_SUCCESS,
close: { variant: 'success' },
close: { variant: 'accent' },
});
} catch (e) {
setDialogMessage({
@ -281,7 +281,7 @@ export async function checkSubscriptionPurchase(
);
setDialogMessage({
title: constants.SUBSCRIPTION_PURCHASE_SUCCESS_TITLE,
close: { variant: 'success' },
close: { variant: 'accent' },
content: constants.SUBSCRIPTION_PURCHASE_SUCCESS(
subscription?.expiryTime
),
@ -320,7 +320,7 @@ function handleFailureReason(
proceed: {
text: constants.UPDATE_PAYMENT_METHOD,
variant: 'success',
variant: 'accent',
action: updatePaymentMethod.bind(
null,
@ -339,7 +339,7 @@ function handleFailureReason(
proceed: {
text: constants.UPDATE_PAYMENT_METHOD,
variant: 'success',
variant: 'accent',
action: updatePaymentMethod.bind(
null,