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

Changes to ListingPage #46

Merged
merged 6 commits into from
Nov 19, 2019
Merged

Changes to ListingPage #46

merged 6 commits into from
Nov 19, 2019

Conversation

OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Nov 18, 2019

localhost_3000_l_yoga-teacher_5da862c0-d75a-48e0-ac56-b8ad87cd846b

options={options}
options={options.filter(o => {
return selectedOptions.find(s => s === o.key);
})}
selectedOptions={selectedOptions}
twoColumns={true}
Copy link
Collaborator

@Gnito Gnito Nov 18, 2019

Choose a reason for hiding this comment

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

If you create variable out of filter
(e.g. const selectedConfigOptions = options.filter(o => selectedOptions.find(s => s === o.key));
you could add here something like:
twoColumns={selectedConfigOptions > 5}

@OtterleyW OtterleyW force-pushed the edit-listing-page branch 4 times, most recently from f0fb695 to 6dfedca Compare November 19, 2019 13:30
@OtterleyW OtterleyW merged commit b583fc1 into master Nov 19, 2019
@OtterleyW OtterleyW deleted the edit-listing-page branch November 19, 2019 13:59
@Gnito Gnito mentioned this pull request Nov 21, 2019
ghost pushed a commit to Skillpickr/forked-sharetribe that referenced this pull request Feb 13, 2023
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