Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into jl-issue62-link
Browse files Browse the repository at this point in the history
  • Loading branch information
dselman committed Jun 24, 2019
2 parents 2e2a6a0 + d7cd186 commit e7349a0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 17 deletions.
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@accordproject/cicero-ui",
"version": "0.0.16",
"version": "0.0.17",
"description": "cicero-ui React component",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -96,4 +96,4 @@
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
]
}
}
}
4 changes: 2 additions & 2 deletions src/ContractEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { SlateAsInputEditor } from '@accordproject/markdown-editor';
import List from '@accordproject/markdown-editor/dist/plugins/list';
import { SlateAsInputEditor, List } from '@accordproject/markdown-editor';

import ClausePlugin from '../plugins/ClausePlugin';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/ClausePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ function ClausePlugin(customLoadTemplate, customParseClause) {
const { node, children } = props;

const nodeAttributes = node.data.get('attributes');
const { src, clauseId } = nodeAttributes;
const { src, clauseid } = nodeAttributes;

if (src) {
console.log(`handing over responsibility of loading: ${src}`);
loadTemplateCallback(src.toString());
}

return (<ClauseComponent templateUri={src} clauseId={clauseId} {...props}>{children}</ClauseComponent>);
return (<ClauseComponent templateUri={src} clauseId={clauseid} {...props}>{children}</ClauseComponent>);
}

/**
Expand Down

0 comments on commit e7349a0

Please sign in to comment.