Skip to content

Commit

Permalink
Merge pull request #11 from Sitecore/helper-basic-app
Browse files Browse the repository at this point in the history
Use the RichText helper for the basic app
  • Loading branch information
alexshyba authored Nov 15, 2017
2 parents 1dc6298 + 5374560 commit b5c6d7d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions samples/basic-sample-react/src/app/components/Welcome.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Image } from '@sitecore-jss/sitecore-jss-react';
import { Image, RichText } from '@sitecore-jss/sitecore-jss-react';

const Welcome = ({ fields, copyright }) =>
<div id="CenterColumn">
Expand All @@ -10,10 +10,8 @@ const Welcome = ({ fields, copyright }) =>
</div>
<div id="Content">
<div id="LeftContent">
<h1 className="contentTitle"
dangerouslySetInnerHTML={{ __html: fields.title.editable }} />
<div className="contentDescription"
dangerouslySetInnerHTML={{ __html: fields.text.editable }} />
<RichText tag="h1" className="contentTitle" field={fields.title} />
<RichText className="contentDescription" field={fields.text} />
</div>
</div>
<div id="Footer">
Expand Down

0 comments on commit b5c6d7d

Please sign in to comment.