Skip to content

Commit b8097e1

Browse files
committed
fix showing the floating filter button
1 parent da8c763 commit b8097e1

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/features/cards/components/devtoCard/DevtoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export function DevtoCard({ withAds, meta }: CardPropsType) {
5656
return (
5757
<div style={{ display: 'inline-block', margin: 0, padding: 0 }}>
5858
<span> {meta.label} </span>
59-
<FloatingFilter card={meta} filters={['language']} />
6059
<InlineTextFilter
6160
options={[GLOBAL_TAG, ...userSelectedTags, MY_LANGUAGES_TAG].map((tag) => ({
6261
label: tag.label,
@@ -74,6 +73,7 @@ export function DevtoCard({ withAds, meta }: CardPropsType) {
7473

7574
return (
7675
<Card card={meta} titleComponent={<HeaderTitle />}>
76+
<FloatingFilter card={meta} filters={['language']} />
7777
<ListComponent
7878
items={getData()}
7979
isLoading={getIsLoading()}

src/features/cards/components/freecodecampCard/FreecodecampCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function FreecodecampCard({ meta, withAds }: CardPropsType) {
5757
return (
5858
<div style={{ display: 'inline-block', margin: 0, padding: 0 }}>
5959
<span> {meta.label} </span>
60-
<FloatingFilter card={meta} filters={['language']} />
6160
<InlineTextFilter
6261
options={[GLOBAL_TAG, ...userSelectedTags, MY_LANGUAGES_TAG].map((tag) => ({
6362
label: tag.label,
@@ -75,6 +74,7 @@ export function FreecodecampCard({ meta, withAds }: CardPropsType) {
7574

7675
return (
7776
<Card card={meta} titleComponent={<HeaderTitle />}>
77+
<FloatingFilter card={meta} filters={['language']} />
7878
<ListComponent
7979
items={getData()}
8080
isLoading={getIsLoading()}

src/features/cards/components/hashnodeCard/HashnodeCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function HashnodeCard({ withAds, meta }: CardPropsType) {
5757
return (
5858
<div style={{ display: 'inline-block', margin: 0, padding: 0 }}>
5959
<span> {meta.label} </span>
60-
<FloatingFilter card={meta} filters={['language']} />
6160
<InlineTextFilter
6261
options={[GLOBAL_TAG, ...userSelectedTags, MY_LANGUAGES_TAG].map((tag) => ({
6362
label: tag.label,
@@ -75,6 +74,7 @@ export function HashnodeCard({ withAds, meta }: CardPropsType) {
7574

7675
return (
7776
<Card card={meta} titleComponent={<HeaderTitle />}>
77+
<FloatingFilter card={meta} filters={['language']} />
7878
<ListComponent
7979
items={getData()}
8080
isLoading={getIsLoading()}

src/features/cards/components/mediumCard/MediumCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export function MediumCard({ meta, withAds }: CardPropsType) {
5555
return (
5656
<div style={{ display: 'inline-block', margin: 0, padding: 0 }}>
5757
<span> {meta.label} </span>
58-
<FloatingFilter card={meta} filters={['language']} />
5958
<InlineTextFilter
6059
options={[GLOBAL_TAG, ...userSelectedTags, MY_LANGUAGES_TAG].map((tag) => ({
6160
label: tag.label,
@@ -73,6 +72,7 @@ export function MediumCard({ meta, withAds }: CardPropsType) {
7372

7473
return (
7574
<Card card={meta} titleComponent={<HeaderTitle />}>
75+
<FloatingFilter card={meta} filters={['language']} />
7676
<ListComponent
7777
items={getData()}
7878
isLoading={getIsLoading()}

src/features/cards/components/redditCard/RedditCard.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export function RedditCard({ withAds, meta }: CardPropsType) {
5656
const HeaderTitle = () => {
5757
return (
5858
<div style={{ display: 'inline-block', margin: 0, padding: 0 }}>
59-
<FloatingFilter card={meta} filters={['language']} />
6059
<span> {meta.label} </span>
6160
<InlineTextFilter
6261
options={[GLOBAL_TAG, ...userSelectedTags, MY_LANGUAGES_TAG].map((tag) => ({
@@ -75,7 +74,7 @@ export function RedditCard({ withAds, meta }: CardPropsType) {
7574

7675
return (
7776
<Card card={meta} titleComponent={<HeaderTitle />}>
78-
<FloatingFilter card={meta} />
77+
<FloatingFilter card={meta} filters={['language']} />
7978
<ListComponent
8079
items={getData()}
8180
isLoading={getIsLoading()}

0 commit comments

Comments
 (0)