@@ -25,6 +25,7 @@ import {
2525 NewIcon ,
2626 ForbiddonIcon ,
2727 StableOption ,
28+ MemeOptIcon ,
2829} from '../../components/icon/FarmBoost' ;
2930import {
3031 GradientButton ,
@@ -196,6 +197,7 @@ export default function FarmsHome(props: any) {
196197 { id : 'near' , name : 'NEAR' , icon : < NearOptIcon > </ NearOptIcon > } ,
197198 { id : 'stable' , name : 'Stable' , icon : < StableOption > </ StableOption > } ,
198199 { id : 'eth' , name : 'ETH' , icon : < EthOptIcon > </ EthOptIcon > } ,
200+ { id : 'meme' , name : 'Meme' , icon : < MemeOptIcon > </ MemeOptIcon > } ,
199201 { id : 'new' , name : 'New' , icon : < NewIcon > </ NewIcon > } ,
200202 { id : 'others' , name : 'Others' , icon : < OthersOptIcon > </ OthersOptIcon > } ,
201203 ] ) ;
@@ -776,39 +778,42 @@ export default function FarmsHome(props: any) {
776778 condition1 = false ;
777779 }
778780 } else if ( filter_type_selectedId == 'near' ) {
779- if (
780- farmClassification [ 'near' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
781- ) {
781+ if ( farmClassification . near . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1 ) {
782782 condition1 = true ;
783783 } else {
784784 condition1 = false ;
785785 }
786786 } else if ( filter_type_selectedId == 'eth' ) {
787- if (
788- farmClassification [ 'eth' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
789- ) {
787+ if ( farmClassification . eth . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1 ) {
790788 condition1 = true ;
791789 } else {
792790 condition3 = false ;
793791 }
794792 } else if ( filter_type_selectedId == 'stable' ) {
795793 if (
796- farmClassification [ ' stable' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
794+ farmClassification . stable . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
797795 ) {
798796 condition1 = true ;
799797 } else {
800798 condition3 = false ;
801799 }
800+ } else if ( filter_type_selectedId == 'meme' ) {
801+ if ( farmClassification . meme . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1 ) {
802+ condition1 = true ;
803+ } else {
804+ condition3 = false ;
805+ }
802806 } else if ( filter_type_selectedId == 'others' ) {
803807 // others
804808 const isNotNear =
805- farmClassification [ ' near' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
809+ farmClassification . near . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
806810 const isNotEth =
807- farmClassification [ ' eth' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
811+ farmClassification . eth . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
808812 const isNotStable =
809- farmClassification [ 'stable' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) ==
810- - 1 ;
811- if ( isNotNear && isNotEth && isNotStable ) {
813+ farmClassification . stable . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
814+ const isNotMeme =
815+ farmClassification . meme . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
816+ if ( isNotNear && isNotEth && isNotStable && isNotMeme ) {
812817 condition1 = true ;
813818 } else {
814819 condition1 = false ;
@@ -906,38 +911,41 @@ export default function FarmsHome(props: any) {
906911 condition1 = false ;
907912 }
908913 } else if ( filter_type_selectedId == 'near' ) {
909- if (
910- farmClassification [ 'near' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
911- ) {
914+ if ( farmClassification . near . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1 ) {
912915 condition1 = true ;
913916 } else {
914917 condition1 = false ;
915918 }
916919 } else if ( filter_type_selectedId == 'eth' ) {
917- if (
918- farmClassification [ 'eth' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
919- ) {
920+ if ( farmClassification . eth . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1 ) {
920921 condition1 = true ;
921922 } else {
922923 condition1 = false ;
923924 }
924925 } else if ( filter_type_selectedId == 'stable' ) {
925926 if (
926- farmClassification [ ' stable' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
927+ farmClassification . stable . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1
927928 ) {
928929 condition1 = true ;
929930 } else {
930931 condition1 = false ;
931932 }
933+ } else if ( filter_type_selectedId == 'meme' ) {
934+ if ( farmClassification . meme . indexOf ( getPoolIdBySeedId ( seed_id ) ) > - 1 ) {
935+ condition1 = true ;
936+ } else {
937+ condition1 = false ;
938+ }
932939 } else if ( filter_type_selectedId == 'others' ) {
933940 const isNotNear =
934- farmClassification [ ' near' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
941+ farmClassification . near . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
935942 const isNotEth =
936- farmClassification [ ' eth' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
943+ farmClassification . eth . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
937944 const isNotStable =
938- farmClassification [ 'stable' ] . indexOf ( getPoolIdBySeedId ( seed_id ) ) ==
939- - 1 ;
940- if ( isNotNear && isNotEth && isNotStable ) {
945+ farmClassification . stable . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
946+ const isNotMeme =
947+ farmClassification . stable . indexOf ( getPoolIdBySeedId ( seed_id ) ) == - 1 ;
948+ if ( isNotNear && isNotEth && isNotStable && isNotMeme ) {
941949 condition1 = true ;
942950 } else {
943951 condition1 = false ;
0 commit comments