feat: migrate screener to FSD with first feature-slice (features/screener)
This commit is contained in:
parent
2fc98341a6
commit
9b208481dd
@ -9,7 +9,7 @@ import { RegisterPage } from '@/pages/RegisterPage';
|
||||
import { ProfilePage } from '@/pages/ProfilePage';
|
||||
import { PortfoliosListPage } from '@/pages/portfolios/PortfoliosListPage';
|
||||
import { PortfolioDetailPage } from '@/pages/portfolios/PortfolioDetailPage';
|
||||
import { ScreenerPage } from '@/pages/screener/ScreenerPage';
|
||||
import { ScreenerPage } from '@/pages/screener';
|
||||
import { BrokerAccountsPage } from '@/pages/broker-accounts';
|
||||
import { BrokerAccountLayout } from '@/entities/broker-account/ui/BrokerAccountLayout';
|
||||
import { BrokerAccountOverviewPage } from '@/pages/broker-account';
|
||||
|
||||
3
apps/frontend/src/features/screener/index.ts
Normal file
3
apps/frontend/src/features/screener/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export { useScreener } from './model/useScreener';
|
||||
export { FilterPanel, FilterPanelShare, FilterPanelBond, ScreenerTable } from './ui';
|
||||
export type { ScreenerQuery } from './api/screenerApi';
|
||||
1
apps/frontend/src/features/screener/model/index.ts
Normal file
1
apps/frontend/src/features/screener/model/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export { useScreener } from './useScreener';
|
||||
@ -1,7 +1,7 @@
|
||||
import { useSearchParams } from 'react-router-dom';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { getScreenerResults } from '../api/screener';
|
||||
import type { ScreenerQuery } from '../api/screener';
|
||||
import { getScreenerResults } from '../api/screenerApi';
|
||||
import type { ScreenerQuery } from '../api/screenerApi';
|
||||
|
||||
export function useScreener() {
|
||||
const [searchParams, setSearchParams] = useSearchParams();
|
||||
@ -1,5 +1,5 @@
|
||||
import { useState } from 'react';
|
||||
import type { ScreenerQuery } from '../../api/screener';
|
||||
import type { ScreenerQuery } from '../api/screenerApi';
|
||||
import { FilterPanelShare } from './FilterPanelShare';
|
||||
import { FilterPanelBond } from './FilterPanelBond';
|
||||
|
||||
4
apps/frontend/src/features/screener/ui/index.ts
Normal file
4
apps/frontend/src/features/screener/ui/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export { FilterPanel } from './FilterPanel';
|
||||
export { FilterPanelShare } from './FilterPanelShare';
|
||||
export { FilterPanelBond } from './FilterPanelBond';
|
||||
export { ScreenerTable } from './ScreenerTable';
|
||||
1
apps/frontend/src/pages/screener/index.ts
Normal file
1
apps/frontend/src/pages/screener/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export { ScreenerPage } from './ui/ScreenerPage';
|
||||
@ -1,6 +1,4 @@
|
||||
import { useScreener } from '../../hooks/useScreener';
|
||||
import { FilterPanel } from '../../components/screener/FilterPanel';
|
||||
import { ScreenerTable } from '../../components/screener/ScreenerTable';
|
||||
import { useScreener, FilterPanel, ScreenerTable } from '@/features/screener';
|
||||
|
||||
export function ScreenerPage() {
|
||||
const { params, result, isLoading, error, setFilters, setPage, setSort, resetFilters } =
|
||||
Loading…
x
Reference in New Issue
Block a user