Skip to content

Commit

Permalink
fix - prop data type update for redirect_urls and redirect_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrafali-v committed Mar 10, 2022
1 parent 145d254 commit 25788bc
Show file tree
Hide file tree
Showing 2 changed files with 3,842 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cashier/src/Components/error-component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const ErrorComponent = ({
refresh_message,
]
}
redirect_urls={redirect_to}
redirect_labels={redirect_label || [<Localize key={0} i18n_default_text='Refresh' />]}
redirect_urls={[redirect_to]}
redirect_labels={[redirect_label || <Localize key={0} i18n_default_text='Refresh' />]}
buttonOnClick={redirectOnClick || (() => location.reload())}
should_clear_error_on_click={should_clear_error_on_click}
setError={setError}
Expand Down
3,840 changes: 3,840 additions & 0 deletions packages/dashboard/lib/index.js

Large diffs are not rendered by default.

0 comments on commit 25788bc

Please sign in to comment.