visortelle commented on code in PR #789:
URL: https://github.com/apache/pulsar-site/pull/789#discussion_r1488429248
##########
src/components/pages/CaseStudiesPage/CaseStudiesPage.tsx:
##########
@@ -37,8 +45,13 @@ const CaseStudiesPage: React.FC = () => {
title: option === 'any' ? 'All Industries' :
data.categoryLabels[option]
}))}
/>
-
- <Input placeholder="Search" value={searchQuery}
onChange={setSearchQuery} clearable />
+ </div>
+ <div className={s.FiltersMobile}>
+ <div>
+ {categoryFilterOptions.map((option) => (
+ <button type="button" data-option={option} onClick={() =>
updateCategoryLinks(option)} className={s.CategoryFilterLink+(option === 'any'
? ' '+s.active : '')}>{option === 'any' ? 'All Industries' :
data.categoryLabels[option]}</button>
Review Comment:
`data-option` and the `document.querySelectorAll` above aren't the React way
to do it, but ok if it works as expected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]