Sha256: 314d48a7b65214fa19d0e8267b3f07e404b23bb701c3a8301e7cf6f3e7fb0bff

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

import * as React from "react";
import * as ReactDOM    from "react-dom";

import Comments, { CommentsApplicationProps } from "./comments/comments.component";
import loadTranslations from "./support/load_translations";

window.DecidimComments = window.DecidimComments || {};

window.DecidimComments.renderCommentsComponent = (nodeId: string, props: CommentsApplicationProps) => {
  let node = window.$(`#${nodeId}`)[0];

  ReactDOM.render(
    React.createElement(Comments, props),
    node,
  );
};

// Load component locales from yaml files
loadTranslations();

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
decidim-comments-0.0.8.1 app/frontend/entry.ts
decidim-0.0.8.1 decidim-comments/app/frontend/entry.ts
decidim-comments-0.0.7 app/frontend/entry.ts
decidim-0.0.7 decidim-comments/app/frontend/entry.ts