Skip to content

Commit

Permalink
feat: removed scripture component and add htmlFeature (#2520)
Browse files Browse the repository at this point in the history
* removed scripture component and add htmlFeature

* snap

* snaps fix?

* lint
  • Loading branch information
camrun91 committed Jun 6, 2022
1 parent ebb1b81 commit 564f542
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 35 deletions.
Expand Up @@ -17,6 +17,7 @@ import ButtonFeature from '../features/ButtonFeature';
import CommentListFeatureConnected from '../CommentListFeatureConnected';
import AddCommentFeatureConnected from '../AddCommentFeatureConnected';
import FollowPeopleFeature from '../FollowPeopleFeature';
import HtmlFeature from '../features/HtmlFeature';

const MAPPINGS = {
ActionListFeature: ActionListFeatureConnected,
Expand All @@ -37,6 +38,7 @@ const MAPPINGS = {
TextFeature,
WebviewFeature,
ButtonFeature,
HtmlFeature,
};

const featuresFeedComponentMapper = ({
Expand Down
10 changes: 10 additions & 0 deletions packages/apollos-ui-connected/src/features/HtmlFeature.js
@@ -0,0 +1,10 @@
import HTMLView from '@apollosproject/ui-htmlview';
import { PaddedView } from '@apollosproject/ui-kit';

const HtmlFeature = ({ content }) => (
<PaddedView>
<HTMLView children={content} />
</PaddedView>
);

export default HtmlFeature;
3 changes: 3 additions & 0 deletions packages/apollos-ui-fragments/src/features.js
Expand Up @@ -129,6 +129,9 @@ const LITE_FEATURES_FRAGMENT = gql`
}
}
}
... on HtmlFeature {
content
}
}
`;

Expand Down
35 changes: 0 additions & 35 deletions packages/apollos-ui-htmlview/src/HTMLView/ScriptureComponent.js

This file was deleted.

0 comments on commit 564f542

Please sign in to comment.