Skip to content

Commit 7ea88f2

Browse files
authored
fix: set footnotes is deprecated (#271)
* fix: set footnotes is deprecated * fix: updatereason for deprecating
1 parent fa90fc3 commit 7ea88f2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#### With Footnotes
2+
3+
![With Footnotes](https://img.shields.io/static/v1?label=Status&message=Deprecated&color=red) · use [Content](http://localhost:7009/?path=/docs/components-content--default) instead

src/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import './ConstructorFootnotes.scss';
77

88
const b = block('constructor-footnotes');
99

10+
/**
11+
* @deprecated use Content block instead
12+
*
13+
* @return - JSX
14+
*/
1015
export const ConstructorFootnotes = ({items}: {items: string[]}) => (
1116
<ol className={b()}>
1217
{items.map((footnote, index) => (

src/demo/DocsWithReadme.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ function importAllReadme(ctx: __WebpackModuleApi.RequireContext) {
2323
importAllReadme(require.context('../blocks', true, /readme\.md$/i));
2424
importAllReadme(require.context('../sub-blocks', true, /readme\.md$/i));
2525
importAllReadme(require.context('../components', true, /readme\.md$/i));
26+
importAllReadme(require.context('../containers', true, /readme\.md$/i));
2627

2728
export const DocsWithReadme = () => {
2829
const context = React.useContext(DocsContext);
2930
const fileName = context?.parameters?.fileName;
3031
const kind = context.kind;
3132
let isComponent = false;
32-
if (kind && /Components|Blocks|Sub-blocks\//.test(kind)) {
33+
if (kind && /Components|Blocks|Sub-blocks|Containers\//.test(kind)) {
3334
isComponent = true;
3435
}
3536

0 commit comments

Comments
 (0)