Skip to content

Commit

Permalink
chore: #1127 disabled preview button when submit new app
Browse files Browse the repository at this point in the history
  • Loading branch information
Truong An committed Jun 4, 2020
1 parent 84794fd commit 38d056a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1974,21 +1974,6 @@ exports[`DeveloperSubmitApp should match a snapshot 1`] = `
<div
className="column "
>
<Component
onClick={[Function]}
type="button"
variant="primary"
>
<button
className="button is-primary "
data-test=""
disabled={false}
onClick={[Function]}
type="button"
>
Preview
</button>
</Component>
<Component
dataTest="submit-app-button"
disabled={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,18 +398,20 @@ export const DeveloperSubmitApp: React.FC<DeveloperSubmitAppProps> = () => {
<LevelRight>
<Grid>
<GridItem>
<Button
onClick={handleOpenAppPreview({
appDetails: appDetailState?.appDetailData?.data,
values,
scopes,
appId: appid,
})}
variant="primary"
type="button"
>
Preview
</Button>
{isSubmitRevision && (
<Button
onClick={handleOpenAppPreview({
appDetails: appDetailState?.appDetailData?.data,
values,
scopes,
appId: appid,
})}
variant="primary"
type="button"
>
Preview
</Button>
)}
{!isSubmitApp && (
<Button onClick={goBackToApps} variant="primary" type="button">
Back To Apps
Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/web-components/src/common/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ export const generateThemeClasses = (
}
@media screen and (min-width: ${breakPoints?.laptop || '960px'}) and (max-width: ${breakPoints?.desktop ||
'1200px'}) {
'1200px'}) {
& {
width: 33.333333%;
}
}
@media screen and (min-width: ${breakPoints?.tablet || '768px'}) and (max-width: ${breakPoints?.laptop ||
'960px'}) {
'960px'}) {
& {
width: 50%;
}
Expand All @@ -185,7 +185,7 @@ export const generateThemeClasses = (
}
@media screen and (min-width: ${breakPoints?.mobile || '560px'}) and (max-width: ${breakPoints?.laptop ||
'960px'}) {
'960px'}) {
& {
width: 50%;
}
Expand Down

0 comments on commit 38d056a

Please sign in to comment.