Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: playground dependencies demos with plain text #1215

Merged
merged 1 commit into from
Mar 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions playground/samples/propertyDependencies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

module.exports = {
schema: {
title: "Property dependencies",
Expand Down Expand Up @@ -56,12 +54,8 @@ module.exports = {
uiSchema: {
unidirectional: {
credit_card: {
"ui:help": (
<p>
If you enter anything here then <code>billing_address</code> will
become required.
</p>
),
"ui:help":
"If you enter anything here then billing_address will become required.",
},
billing_address: {
"ui:help":
Expand All @@ -70,20 +64,12 @@ module.exports = {
},
bidirectional: {
credit_card: {
"ui:help": (
<p>
"If you enter anything here then <code>billing_address</code> will
become required.
</p>
),
"ui:help":
"If you enter anything here then billing_address will become required.",
},
billing_address: {
"ui:help": (
<p>
If you enter anything here then <code>credit_card</code> will become
required.
</p>
),
"ui:help":
"If you enter anything here then credit_card will become required.",
},
},
},
Expand Down
10 changes: 2 additions & 8 deletions playground/samples/schemaDependencies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

module.exports = {
schema: {
title: "Schema dependencies",
Expand Down Expand Up @@ -110,12 +108,8 @@ module.exports = {
uiSchema: {
simple: {
credit_card: {
"ui:help": (
<p>
If you enter anything here then <code>billing_address</code> will be
dynamically added to the form.
</p>
),
"ui:help":
"If you enter anything here then billing_address will be dynamically added to the form.",
},
},
conditional: {
Expand Down