Skip to content

Commit

Permalink
feat: #1123 render html for app detail (#1152)
Browse files Browse the repository at this point in the history
feat: #1123 render html for app detail (#1152)
  • Loading branch information
Pham Hai Duong authored May 5, 2020
1 parent 0669a93 commit ee76c1a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ exports[`AppDetailModalInner should match a snapshot 1`] = `
</div>
</React.Fragment>
<br />
<p />
<Unknown
html=""
/>
<br />
<Unknown>
Permissions requested
Expand Down
14 changes: 12 additions & 2 deletions packages/marketplace/src/components/ui/app-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ import Slider, { Settings } from 'react-slick'
import { FaCheck, FaTimes, FaCopy } from 'react-icons/fa'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import { connect } from 'react-redux'
import { Tile, ModalHeader, ModalBody, ModalFooter, H6, GridThreeColItem, Grid, SubTitleH6 } from '@reapit/elements'
import {
Tile,
ModalHeader,
ModalBody,
ModalFooter,
H6,
GridThreeColItem,
Grid,
SubTitleH6,
HTMLRender,
} from '@reapit/elements'
import { AppDetailModel } from '@reapit/foundations-ts-definitions'
import { ReduxState } from '@/types/core'
import ChevronLeftIcon from '@/components/svg/chevron-left'
Expand Down Expand Up @@ -200,7 +210,7 @@ export const AppDetail: React.FunctionComponent<AppDetailProps> = ({
</div>
)}
<br />
<p>{description}</p>
<HTMLRender html={description || ''} />
<br />

<H6>
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.

0 comments on commit ee76c1a

Please sign in to comment.