File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src-ts/tools/learn/my-learning Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const CompletedTab: FC<CompletedTabProps> = (props: CompletedTabProps) => {
2727 props . certifications
2828 )
2929
30+ const disableFilters : boolean = props . certifications . length < 1
3031 const hasCertifications : boolean = certifications . length >= 1
3132
3233 const renderPlaceholder : ( ) => ReactNode = ( ) => (
@@ -60,7 +61,7 @@ const CompletedTab: FC<CompletedTabProps> = (props: CompletedTabProps) => {
6061 sortOptions = { sortOptions . completed }
6162 onSortChange = { handleSortChange }
6263 onCategoryChange = { handleCategoryChange }
63- disableFilters = { ! hasCertifications }
64+ disableFilters = { disableFilters }
6465 >
6566 < div className = { styles [ 'cards-wrap' ] } >
6667 { renderCertificationsList ( ) }
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const InProgressTab: FC<InProgressTabProps> = (props: InProgressTabProps) => {
2727 props . certifications
2828 )
2929
30+ const disableFilters : boolean = props . certifications . length < 1
3031 const hasCertifications : boolean = certifications . length >= 1
3132
3233 const renderPlaceholder : ( ) => ReactNode = ( ) => (
@@ -63,7 +64,7 @@ const InProgressTab: FC<InProgressTabProps> = (props: InProgressTabProps) => {
6364 sortOptions = { sortOptions . inProgress }
6465 onSortChange = { handleSortChange }
6566 onCategoryChange = { handleCategoryChange }
66- disableFilters = { ! hasCertifications }
67+ disableFilters = { disableFilters }
6768 >
6869 < div className = { styles . wrap } >
6970 { renderCertificationsList ( ) }
You can’t perform that action at this time.
0 commit comments