Closed aissshah closed 3 years ago
Thanks for explaining - makes sense! :)
On Sun, 18 Jul 2021 at 13:22, Aishah @.***> wrote:
@.**** commented on this pull request.
In src/js/components/SearchPage.jsx https://github.com/winterstein/sogive-app/pull/245#discussion_r671834643 :
@@ -433,31 +433,23 @@ const SearchResult = ({ item, CTA, onPick }) => { } data-id={cid}
- <a
- href={charityUrl}
- onClick={onClick}
- className="logo col-md-2 col-xs-4"
- {item.logo ? (
- {item.logo && (
Its a little more concise and removes the need to specify null.. The other option would be sth ? Component : null
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/winterstein/sogive-app/pull/245#discussion_r671834643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOUMW6ERIPXZU3BXUJRD5TTYLBRTANCNFSM5ASA42GQ .
Solution to this was to remove the placeholders completely and expand the column when a logo is unavailable.
How it looks now:
The logo not showing due to a broken link will still be visible.
How it looked before:
@anitawoodruff