@woosmap/ui 3.150.0 → 3.151.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "3.150.0",
3
+ "version": "3.151.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -110,8 +110,8 @@ Footer.propTypes = {
110
110
 
111
111
  class Aside extends Component {
112
112
  render() {
113
- const { product, mode } = this.props;
114
- if (mode === 'pluggedto') {
113
+ const { product, mode, children } = this.props;
114
+ if (mode === 'pluggedTo') {
115
115
  return (
116
116
  <div className="card__aside card__aside--small card__aside--grey">
117
117
  <div className="card__aside__title">{tr('Plugged to')}</div>
@@ -141,7 +141,7 @@ class Aside extends Component {
141
141
  />
142
142
  <div>
143
143
  <div className="card__aside__list__item__title mb--5">{product.name}</div>
144
- <siv>switch</siv>
144
+ <div>{children}</div>
145
145
  </div>
146
146
  </li>
147
147
  </ul>
@@ -168,8 +168,9 @@ class Aside extends Component {
168
168
  }
169
169
 
170
170
  Aside.propTypes = {
171
+ children: PropTypes.node.isRequired,
171
172
  product: PropTypes.object.isRequired,
172
- mode: PropTypes.oneOf(['pluggedto', 'addon', 'workwith']).isRequired,
173
+ mode: PropTypes.oneOf(['pluggedTo', 'addon', 'worksWith']).isRequired,
173
174
  };
174
175
 
175
176
  class Card extends Component {
@@ -14,7 +14,9 @@ const Story = {
14
14
  export default Story;
15
15
  const renderAsideContent = () => (
16
16
  <>
17
- <Card.Aside mode="addon" product={{ id: 'INDOOR_MAP', name: 'Indoor Map' }} />
17
+ <Card.Aside mode="addon" product={{ id: 'INDOOR_MAP', name: 'Indoor Map' }}>
18
+ switch
19
+ </Card.Aside>
18
20
  </>
19
21
  );
20
22