Skip to content

Commit

Permalink
chore: #1997 rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined committed Jul 14, 2020
1 parent e98c101 commit 5469a94
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 96 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const handleUninstallSuccess = ({
}

export const handleOpenAppPreview = (appId: string) => () => {
const url = routes.DEVELOPER_APP_PREVIEW.replace(':appId', appId)
const url = routes.APP_PREVIEW.replace(':appId', appId)
window.open(url, '_blank')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const handleOpenAppPreview = ({
media,
}

const url = routes.DEVELOPER_APP_PREVIEW.replace(':appId', appId)
const url = routes.APP_PREVIEW.replace(':appId', appId)
localStorage.setItem('developer-preview-app', JSON.stringify(appDetailState))
window.open(url, '_blank')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`ErrorContent should match snapshot 1`] = `
It looks as though you already have a subscription in place for the Developer Edition of Agency Cloud. If you have not received your email with instructions on how to download, please let us know using the live chat feature on the 
<a
className={[Function]}
href="https://marketplace.reapit.cloud/developer/help"
href="/help"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as React from 'react'
import { Button, SubTitleH6, ModalHeader, ModalBody, ModalFooter, ModalProps } from '@reapit/elements'
import linkStyles from '@/styles/elements/link.scss?mod'
import developerEditionStyles from '@/styles/blocks/developer-edition-modal.scss?mod'

const HELP_PAGE_LINK = 'https://marketplace.reapit.cloud/developer/help'
import routes from '@/constants/routes'

export type ErrorContentProps = Pick<ModalProps, 'afterClose'>

Expand All @@ -17,7 +16,7 @@ export const ErrorContent: React.FC<ErrorContentProps> = ({ afterClose }) => {
It looks as though you already have a subscription in place for the Developer Edition of Agency Cloud. If
you have not received your email with instructions on how to download, please let us know using the live
chat feature on the&nbsp;
<a className={linkStyles.link} target="_blank" rel="noopener noreferrer" href={HELP_PAGE_LINK}>
<a className={linkStyles.link} target="_blank" rel="noopener noreferrer" href={routes.HELP}>
&apos;Help&apos;
</a>
&nbsp;page.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import routes from '@/constants/routes'

export const HelpLinks = {
WHATS_NEW: `${routes.DEVELOPER_API_DOCS}/whats-new`,
WHATS_NEW: `${routes.API_DOCS}/whats-new`,
BUG_REPORT:
'https://github.com/reapit/foundations/issues/new?assignees=&labels=bug%2C+needs-triage&template=bug_report.md&title=',
API_REQUEST:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ exports[`Router should match a snapshot 1`] = `
}
exact={true}
fetcher={true}
path="/developer/apps"
path="/apps"
/>
<Component
allow="DEVELOPER"
Expand All @@ -127,7 +127,7 @@ exports[`Router should match a snapshot 1`] = `
}
exact={true}
fetcher={true}
path="/apps"
path="/apps/:appid"
/>
<Component
allow="DEVELOPER"
Expand All @@ -141,7 +141,7 @@ exports[`Router should match a snapshot 1`] = `
}
exact={true}
fetcher={true}
path="/apps/:appid"
path="/apps/:appid/edit"
/>
<Component
allow="DEVELOPER"
Expand All @@ -153,9 +153,7 @@ exports[`Router should match a snapshot 1`] = `
"_status": -1,
}
}
exact={true}
fetcher={true}
path="/apps/:appid/edit"
path="/api-docs"
/>
<Component
allow="DEVELOPER"
Expand All @@ -167,7 +165,8 @@ exports[`Router should match a snapshot 1`] = `
"_status": -1,
}
}
path="/api-docs"
fetcher={true}
path="/webhooks"
/>
<Component
allow="DEVELOPER"
Expand All @@ -179,8 +178,8 @@ exports[`Router should match a snapshot 1`] = `
"_status": -1,
}
}
fetcher={true}
path="/webhooks"
exact={true}
path="/swagger"
/>
<Component
allow="DEVELOPER"
Expand All @@ -193,7 +192,7 @@ exports[`Router should match a snapshot 1`] = `
}
}
exact={true}
path="/swagger"
path="/desktop"
/>
<Component
allow="DEVELOPER"
Expand All @@ -206,7 +205,8 @@ exports[`Router should match a snapshot 1`] = `
}
}
exact={true}
path="/desktop"
fetcher={true}
path="/analytics/:activeTab?"
/>
<Component
allow="DEVELOPER"
Expand All @@ -220,7 +220,7 @@ exports[`Router should match a snapshot 1`] = `
}
exact={true}
fetcher={true}
path="/analytics/:activeTab?"
path="/settings/"
/>
<Component
allow="DEVELOPER"
Expand Down

0 comments on commit 5469a94

Please sign in to comment.