@ndla/ui 39.0.4 → 39.1.1
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/README.md +0 -18
- package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +25 -16
- package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +15 -10
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.d.ts +3 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +25 -16
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.d.ts +3 -1
- package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +14 -9
- package/package.json +2 -2
- package/src/MultidisciplinarySubject/MultidisciplinarySubject.tsx +12 -6
- package/src/MultidisciplinarySubject/MultidisciplinarySubjectHeader.tsx +8 -2
package/README.md
CHANGED
|
@@ -67,21 +67,3 @@ const MyPage = ({ topicPath, topic, article }) => {
|
|
|
67
67
|
);
|
|
68
68
|
};
|
|
69
69
|
```
|
|
70
|
-
|
|
71
|
-
### Only import specific components
|
|
72
|
-
|
|
73
|
-
```jsx
|
|
74
|
-
import Hero from '@ndla/ui/es/hero/Hero';
|
|
75
|
-
|
|
76
|
-
const MyPage = () => {
|
|
77
|
-
return (
|
|
78
|
-
<Hero>
|
|
79
|
-
<MyAwesomeComponent />
|
|
80
|
-
</Hero>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Important
|
|
86
|
-
|
|
87
|
-
Components to be used as part of article rendered in article-converter can _not_ use useTranslation hook. This is because article-converter generates static html without dynamics, and this locks all texts inserted via the hook to be 'nb'.
|