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

Config delay #154

Open
wants to merge 3 commits into
base: widget
Choose a base branch
from
Open

Config delay #154

wants to merge 3 commits into from

Conversation

hpatel-mm
Copy link
Contributor

No description provided.

@@ -245,7 +245,7 @@ export default class Resource extends Component {
{this.fields().map(field => {
if (field === 'title') {
return (
<div className="cloudinary-field__field">
<div className="cloudinary-field__field" key={ field }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key will always have a value of title it seems

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which is fine, as long as it's unique for that instance. There's only one title field for an instance of a Cloudinary field.

@@ -259,7 +259,7 @@ export default class Resource extends Component {

if (field === 'description') {
return (
<div className="cloudinary-field__field">
<div className="cloudinary-field__field" key={ field }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key will always have a value of description it seems

@@ -273,7 +273,7 @@ export default class Resource extends Component {

if (field === 'credit') {
return (
<div className="cloudinary-field__field">
<div className="cloudinary-field__field" key={ field }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key will always have a value of credit it seems

@@ -287,7 +287,7 @@ export default class Resource extends Component {

if (field === 'gravity') {
return (
<div className="cloudinary-field__field">
<div className="cloudinary-field__field" key={ field }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again

@@ -305,7 +305,7 @@ export default class Resource extends Component {

if (field === 'fg-colour' && resource_type === 'image' && top_colours && top_colours.length) {
return (
<div className="cloudinary-field__field">
<div className="cloudinary-field__field" key={ field }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again

@@ -333,7 +333,7 @@ export default class Resource extends Component {

if (field === 'bg-colour' && resource_type === 'image' && top_colours && top_colours.length) {
return (
<div className="cloudinary-field__field">
<div className="cloudinary-field__field" key={ field }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants