Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit b199055

Browse files
committed
fix: add required dependencies
1 parent a632329 commit b199055

9 files changed

+13688
-9901
lines changed

.github/workflows/gh-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: website
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66

77
jobs:
88
publish:

.github/workflows/node.js.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ name: Node.js CI
55

66
on:
77
pull_request:
8-
branches: [ master ]
8+
branches: [master]
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
strategy:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
.eslintcache

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This example contains documentation and example code for creating widgets using
1919
6. Install the project dependencies using `npm install`
2020
7. Run the project locally using `npm start`
2121

22-
**IMPORTANT:** Make sure you check the [widget development documentation](/widget-development.md) when developing your own.
22+
**IMPORTANT:** Make sure you check the [widget development documentation](/widget-development.md) when developing your own.
2323

2424
### Continuous Integration
2525

@@ -94,7 +94,7 @@ document.loadWidgets({
9494
#### Parameters
9595

9696
| Name | Required | Default | Example | Description |
97-
| ------------------ | -------- | ------------------------ | ------------------------| ------------------------------------------------------------------------- |
97+
| ------------------ | -------- | ------------------------ | ----------------------- | ------------------------------------------------------------------------- |
9898
| renderFunctionName | yes | | `renderExampleWidget` | The render function callback. |
9999
| instanceId | yes | | `example-widget-1` | The already present HTML element ID where the react app will be rendered. |
100100
| language | no | en-us | de | The language code for internationalization purposes. |
@@ -111,7 +111,9 @@ import React, { Component } from 'react';
111111
class Widget extends Component {
112112
render() {
113113
return (
114-
<div className="App">{this.props.obj.getAttribute('data-button-text')}</div>
114+
<div className="App">
115+
{this.props.obj.getAttribute('data-button-text')}
116+
</div>
115117
);
116118
}
117119
}

0 commit comments

Comments
 (0)