Skip to content

Commit 3fca6f4

Browse files
committed
Update select demos
1 parent 981febd commit 3fca6f4

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

packages/react-renderer-demo/src/app/src/components/navigation/examples-definitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import GenericComponentText from './examples-texts/generic-mui-component';
33
import TabsText from './examples-texts/tabs';
44
import CustomComponentText from './examples-texts/custom-component';
55
import WizardText from './examples-texts/wizard';
6+
import SelectText from './examples-texts/select';
67

78
export const baseExamples = [{
89
component: componentTypes.TEXT_FIELD,
@@ -125,7 +126,7 @@ export const baseExamples = [{
125126
component: componentTypes.SELECT_COMPONENT,
126127
link: `?component=${componentTypes.SELECT_COMPONENT}`,
127128
linkText: 'Select',
128-
ContentText: GenericComponentText,
129+
ContentText: SelectText,
129130
canBeRequired: true,
130131
value: { fields: [{
131132
component: componentTypes.SELECT_COMPONENT,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import React from 'react';
2+
import GenericComponentText from './generic-mui-component';
3+
import Pf3Select from '@docs/doc-components/pf3-select.md';
4+
import Pf4Select from '@docs/doc-components/pf4-select.md';
5+
6+
export default ({ activeMapper }) => activeMapper === 'pf3' ? <Pf3Select /> : activeMapper === 'pf4' ? <Pf4Select /> : <GenericComponentText />;

0 commit comments

Comments
 (0)