logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

card_container.js (434B)


  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import Card from '../features/status/components/card';
  4. import { fromJS } from 'immutable';
  5. export default class CardContainer extends React.PureComponent {
  6. static propTypes = {
  7. locale: PropTypes.string,
  8. card: PropTypes.array.isRequired,
  9. };
  10. render () {
  11. const { card, ...props } = this.props;
  12. return <Card card={fromJS(card)} {...props} />;
  13. }
  14. }