Resolve MIN-96 "Feature/ open drawer after search"
2 unresolved threads
Description
In this PR I introduce functionality: When users triggers search query -> open drawer and show content
Things done
- Open drawer on search query start
- Display drugs drawer with loading indicator or number of drugs results depending on request status
Additional
- Introduced more general redux wrapper that allow you to mock initial state
Merge request reports
Activity
Filter activity
requested review from @AdrianOrlow and @mateuszmiko
15 'non-expandable': <Icon name="chevron-right" className="h-6 w-6 fill-font-500" />, 16 }; 17 18 return variantsIcons[variant]; 19 }; 20 21 export const AccordionItemButton = ({ 22 children, 23 variant = 'expandable', 24 }: AccordionItemButtonProps): JSX.Element => { 25 const ButtonIcon = getIcon(variant); 26 27 return ( 28 <AIB className="accordion-button flex flex-row flex-nowrap justify-between"> 29 {children} 30 {/* <Icon name="chevron-down" className="arrow-button h-6 w-6 fill-font-500" /> */} changed this line in version 2 of the diff
2 3 import { AccordionItemButton as AIB } from 'react-accessible-accordion'; 3 4 import './AccordionItemButton.style.css'; 4 5 6 type Variant = 'expandable' | 'non-expandable'; 5 7 interface AccordionItemButtonProps { 6 8 children: React.ReactNode; 9 variant?: Variant; 7 10 } 8 11 9 export const AccordionItemButton = ({ children }: AccordionItemButtonProps): JSX.Element => ( 10 <AIB className="accordion-button flex flex-row flex-nowrap justify-between"> 11 {children} 12 <Icon name="chevron-down" className="arrow-button h-6 w-6 fill-font-500" /> 13 </AIB> 14 ); 12 const getIcon = (variant: Variant): JSX.Element => { changed this line in version 2 of the diff
added 1 commit
- 8c466924 - refactor(accordion item button): moved helpers to separate file
enabled an automatic merge when the pipeline for 8c466924 succeeds
mentioned in commit 8f6bfc26
Please register or sign in to reply