index.js
10 lines
| 1 | import {donorDashboardApi, getQueryParam} from '../../../utils'; |
| 2 | |
| 3 | export const logoutWithAPI = () => { |
| 4 | return donorDashboardApi.post('logout', {}).then((response) => response.data); |
| 5 | }; |
| 6 | |
| 7 | export const getCleanParentHref = () => { |
| 8 | return `${window.parent.location.origin}${window.parent.location.pathname}`; |
| 9 | }; |
| 10 |