Skip to content

Commit

Permalink
TW-877: Reorder ts code
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatoslavtt committed Aug 11, 2023
1 parent 9c9f7c9 commit dfdc1e0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/screens/d-apps/d-apps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ export const DApps = () => {

const { navigate } = useNavigation();

const styles = useDAppsStyles();

const dAppsList = useDAppsListSelector();
const partnersPromotionEnabled = useIsPartnersPromoEnabledSelector();
const isEnabledAdsBanner = useIsEnabledAdsBannerSelector();

const [searchValue, setSearchValue] = useState<string>();
const [layoutWidth, setLayoutWidth] = useState(1);

usePageAnalytic(ScreensEnum.DApps);

useEffect(() => {
Expand All @@ -55,13 +61,6 @@ export const DApps = () => {
}
}, [partnersPromotionEnabled, isEnabledAdsBanner]);

const styles = useDAppsStyles();

const dAppsList = useDAppsListSelector();

const [searchValue, setSearchValue] = useState<string>();
const [layoutWidth, setLayoutWidth] = useState(1);

usePageAnalytic(ScreensEnum.DApps);

const sortedDAppsList = useMemo(() => {
Expand Down

0 comments on commit dfdc1e0

Please sign in to comment.