정렬 박스 및 드랍다운 섹션 화살표 공통화 처리
This commit is contained in:
@@ -78,6 +78,15 @@ export enum FooterItemActiveKey {
|
|||||||
Settlement = 'Settlement',
|
Settlement = 'Settlement',
|
||||||
Account = 'Account',
|
Account = 'Account',
|
||||||
};
|
};
|
||||||
|
export enum SortByKeys {
|
||||||
|
New = 'New',
|
||||||
|
Amount = 'Amount',
|
||||||
|
};
|
||||||
|
export interface SortOptionsBoxProps {
|
||||||
|
sortBy: SortByKeys;
|
||||||
|
onClickToSort: (sortBy: SortByKeys) => void;
|
||||||
|
};
|
||||||
|
|
||||||
export interface CodesSelectParams {
|
export interface CodesSelectParams {
|
||||||
codeCl?: string;
|
codeCl?: string;
|
||||||
colNm?: string;
|
colNm?: string;
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
import { DefaulResponsePagination, DefaultRequestPagination } from '@/entities/common/model/types';
|
import { DefaulResponsePagination, DefaultRequestPagination } from '@/entities/common/model/types';
|
||||||
|
|
||||||
export enum SortByKeys {
|
|
||||||
New = 'New',
|
|
||||||
Amount = 'Amount',
|
|
||||||
};
|
|
||||||
export interface SortOptionsBoxProps {
|
|
||||||
sortBy: SortByKeys;
|
|
||||||
onClickToSort: (sortBy: SortByKeys) => void;
|
|
||||||
};
|
|
||||||
export enum SettlementTabKeys {
|
export enum SettlementTabKeys {
|
||||||
Calendar = 'calendar',
|
Calendar = 'calendar',
|
||||||
List = 'list'
|
List = 'list'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { ListDateGroup } from './list-date-group';
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
import { SortOptionsBox } from '@/entities/settlement/ui/sort-options-box';
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
import { useSettlementsHistoryMutation } from '../api/use-settlements-history-mutation';
|
import { useSettlementsHistoryMutation } from '../api/use-settlements-history-mutation';
|
||||||
import { useSettlementsHistorySummaryMutation } from '../api/use-settlements-history-summary-mutation';
|
import { useSettlementsHistorySummaryMutation } from '../api/use-settlements-history-summary-mutation';
|
||||||
import { useSettlementsTransactionSummaryMutation } from '../api/use-settlements-transaction-summary-mutation';
|
import { useSettlementsTransactionSummaryMutation } from '../api/use-settlements-transaction-summary-mutation';
|
||||||
@@ -18,13 +18,13 @@ import 'react-slidedown/lib/slidedown.css';
|
|||||||
import { ListFilter } from './filter/list-filter';
|
import { ListFilter } from './filter/list-filter';
|
||||||
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
||||||
import {
|
import {
|
||||||
SortByKeys,
|
|
||||||
SettlementPeriodType,
|
SettlementPeriodType,
|
||||||
SettlementPaymentMethod,
|
SettlementPaymentMethod,
|
||||||
SettlementsHistoryContent,
|
SettlementsHistoryContent,
|
||||||
ListDateGroupProps,
|
ListDateGroupProps,
|
||||||
SettlementsTransactionListContent
|
SettlementsTransactionListContent
|
||||||
} from '@/entities/settlement/model/types';
|
} from '../model/types';
|
||||||
|
import { SortByKeys } from '@/entities/common/model/types';
|
||||||
|
|
||||||
export interface ListWrapProps {
|
export interface ListWrapProps {
|
||||||
startDateFromCalendar?: string;
|
startDateFromCalendar?: string;
|
||||||
|
|||||||
@@ -9,23 +9,14 @@ export interface InvoiceFilterProps {
|
|||||||
filterOn: boolean;
|
filterOn: boolean;
|
||||||
setFilterOn: (filterOn: boolean) => void;
|
setFilterOn: (filterOn: boolean) => void;
|
||||||
};
|
};
|
||||||
export enum SortByKeys {
|
|
||||||
New = 'New',
|
|
||||||
Amount = 'Amount',
|
|
||||||
};
|
|
||||||
export interface SortOptionsBoxProps {
|
|
||||||
sortBy: SortByKeys;
|
|
||||||
onCliCkToSort: (sortBy: SortByKeys) => void;
|
|
||||||
};
|
|
||||||
export enum DetailInfoSectionKeys {
|
export enum DetailInfoSectionKeys {
|
||||||
Amount = 'Amount',
|
Amount = 'Amount',
|
||||||
Publish = 'Publish',
|
Publish = 'Publish',
|
||||||
Receiver = 'Receiver',
|
Receiver = 'Receiver',
|
||||||
Supplier = 'Supplier',
|
Supplier = 'Supplier',
|
||||||
};
|
};
|
||||||
export interface InvoiceArrowProps {
|
|
||||||
show?: boolean;
|
|
||||||
};
|
|
||||||
export interface InvoiceListParams {
|
export interface InvoiceListParams {
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -77,7 +68,7 @@ export interface DetailResponse {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export interface DetailInfoSectionProps extends DetailResponse {
|
export interface DetailInfoSectionProps extends DetailResponse {
|
||||||
show?: boolean;
|
isOpen?: boolean;
|
||||||
tid?: string;
|
tid?: string;
|
||||||
onClickToShowInfo?: (info: DetailInfoSectionKeys) => void;
|
onClickToShowInfo?: (info: DetailInfoSectionKeys) => void;
|
||||||
};
|
};
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { DetailInfoSectionProps } from '../model/types';
|
import { DetailInfoSectionProps } from '../model/types';
|
||||||
import { InvoiceArrow } from './invoice-arrow';
|
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
||||||
|
|
||||||
export const DetailAmountInfoSection = ({
|
export const DetailAmountInfoSection = ({
|
||||||
amountInfo,
|
amountInfo,
|
||||||
show,
|
isOpen,
|
||||||
onClickToShowInfo
|
onClickToShowInfo
|
||||||
}: DetailInfoSectionProps) => {
|
}: DetailInfoSectionProps) => {
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ export const DetailAmountInfoSection = ({
|
|||||||
className="chip-btn"
|
className="chip-btn"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span>금액상세</span> <InvoiceArrow show={ show }></InvoiceArrow>
|
<span>금액상세</span> <SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="amount-expand">
|
<div className="amount-expand">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { DetailInfoSectionProps } from '../model/types';
|
|||||||
|
|
||||||
export const DetailPublishInfoSection = ({
|
export const DetailPublishInfoSection = ({
|
||||||
publishInfo,
|
publishInfo,
|
||||||
show,
|
isOpen,
|
||||||
onClickToShowInfo
|
onClickToShowInfo
|
||||||
}: DetailInfoSectionProps) => {
|
}: DetailInfoSectionProps) => {
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { DetailInfoSectionProps } from '../model/types';
|
|||||||
|
|
||||||
export const DetailReceiverInfoSection = ({
|
export const DetailReceiverInfoSection = ({
|
||||||
receiverInfo,
|
receiverInfo,
|
||||||
show,
|
isOpen,
|
||||||
onClickToShowInfo
|
onClickToShowInfo
|
||||||
}: DetailInfoSectionProps) => {
|
}: DetailInfoSectionProps) => {
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { DetailInfoSectionProps } from '../model/types';
|
|||||||
|
|
||||||
export const DetailSupplierInfoSection = ({
|
export const DetailSupplierInfoSection = ({
|
||||||
supplierInfo,
|
supplierInfo,
|
||||||
show,
|
isOpen,
|
||||||
onClickToShowInfo
|
onClickToShowInfo
|
||||||
}: DetailInfoSectionProps) => {
|
}: DetailInfoSectionProps) => {
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
import { useEffect, useState } from 'react';
|
|
||||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
|
||||||
import { AltMsgKeys } from '@/entities/common/model/types';
|
|
||||||
import { InvoiceArrowProps } from '../model/types';
|
|
||||||
|
|
||||||
export const InvoiceArrow = ({ show }: InvoiceArrowProps) => {
|
|
||||||
const [altMsg, setAltMsg] = useState<AltMsgKeys>(AltMsgKeys.Fold);
|
|
||||||
const [className, setClassName] = useState<string>('ic20 rot-180');
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setAltMsg((show)? AltMsgKeys.Fold: AltMsgKeys.UnFold);
|
|
||||||
setClassName(`ic20 ${(show)? 'rot-180': ''}`);
|
|
||||||
}, [show]);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<img
|
|
||||||
className={ className }
|
|
||||||
src={ IMAGE_ROOT + '/select_arrow.svg' }
|
|
||||||
alt={ altMsg }
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||||
import { InvoiceFilter } from './invoice-filter';
|
import { InvoiceFilter } from './invoice-filter';
|
||||||
import { SortOptionsBox } from './sort-options-box';
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
import { SortByKeys } from '../model/types';
|
import { SortByKeys } from '@/entities/common/model/types';
|
||||||
import { InvoiceList } from './invoice-list';
|
import { InvoiceList } from './invoice-list';
|
||||||
|
|
||||||
export const InvoiceListWrap = () => {
|
export const InvoiceListWrap = () => {
|
||||||
@@ -21,7 +21,7 @@ export const InvoiceListWrap = () => {
|
|||||||
const onClickToOpenFIlter = () => {
|
const onClickToOpenFIlter = () => {
|
||||||
setFilterOn(true);
|
setFilterOn(true);
|
||||||
};
|
};
|
||||||
const onCliCkToSort = (sort: SortByKeys) => {
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
setSortBy(sort);
|
setSortBy(sort);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ export const InvoiceListWrap = () => {
|
|||||||
<div className="filter-section mt-10">
|
<div className="filter-section mt-10">
|
||||||
<SortOptionsBox
|
<SortOptionsBox
|
||||||
sortBy={ sortBy }
|
sortBy={ sortBy }
|
||||||
onCliCkToSort={ onCliCkToSort }
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
</div>
|
</div>
|
||||||
<InvoiceList
|
<InvoiceList
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
import {
|
|
||||||
SortByKeys,
|
|
||||||
SortOptionsBoxProps
|
|
||||||
} from '../model/types';
|
|
||||||
export const SortOptionsBox = ({
|
|
||||||
sortBy,
|
|
||||||
onCliCkToSort
|
|
||||||
}: SortOptionsBoxProps) => {
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="sort-options">
|
|
||||||
<button
|
|
||||||
className={ `sort-btn ${(sortBy === SortByKeys.New)? 'active': ''}` }
|
|
||||||
onClick={ () => onCliCkToSort(SortByKeys.New) }
|
|
||||||
>최신순</button>
|
|
||||||
<span className="sort-divider">|</span>
|
|
||||||
<button
|
|
||||||
className={ `sort-btn ${(sortBy === SortByKeys.Amount)? 'active': ''}` }
|
|
||||||
onClick={ () => onCliCkToSort(SortByKeys.Amount) }
|
|
||||||
>고액순</button>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
@@ -4,10 +4,6 @@ export enum CancelTabKeys {
|
|||||||
All = 'All',
|
All = 'All',
|
||||||
Part = 'Part'
|
Part = 'Part'
|
||||||
};
|
};
|
||||||
export enum SortByKeys {
|
|
||||||
New = 'New',
|
|
||||||
Amount = 'Amount',
|
|
||||||
};
|
|
||||||
export enum TransactionCategory {
|
export enum TransactionCategory {
|
||||||
AllTransaction = 'AllTransaction',
|
AllTransaction = 'AllTransaction',
|
||||||
CashReceipt = 'CashReceipt',
|
CashReceipt = 'CashReceipt',
|
||||||
@@ -130,10 +126,6 @@ export enum BillingPaymentMethod {
|
|||||||
MOBILE_PAYMENT = 'MOBILE_PAYMENT'
|
MOBILE_PAYMENT = 'MOBILE_PAYMENT'
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface SortOptionsBoxProps {
|
|
||||||
sortBy: SortByKeys;
|
|
||||||
onCliCkToSort: (sortBy: SortByKeys) => void;
|
|
||||||
};
|
|
||||||
export interface ListItemProps extends AllTransactionListItem, CashReceiptListItem, EscrowListItem, BillingListItem {
|
export interface ListItemProps extends AllTransactionListItem, CashReceiptListItem, EscrowListItem, BillingListItem {
|
||||||
transactionCategory?: TransactionCategory;
|
transactionCategory?: TransactionCategory;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
import {
|
|
||||||
SortByKeys,
|
|
||||||
SortOptionsBoxProps
|
|
||||||
} from '../model/types';
|
|
||||||
export const SortOptionsBox = ({
|
|
||||||
sortBy,
|
|
||||||
onCliCkToSort
|
|
||||||
}: SortOptionsBoxProps) => {
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="sort-options">
|
|
||||||
<button
|
|
||||||
className={ `sort-btn ${(sortBy === SortByKeys.New)? 'active': ''}` }
|
|
||||||
onClick={ () => onCliCkToSort(SortByKeys.New) }
|
|
||||||
>최신순</button>
|
|
||||||
<span className="sort-divider">|</span>
|
|
||||||
<button
|
|
||||||
className={ `sort-btn ${(sortBy === SortByKeys.Amount)? 'active': ''}` }
|
|
||||||
onClick={ () => onCliCkToSort(SortByKeys.Amount) }
|
|
||||||
>고액순</button>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
@@ -91,7 +91,7 @@ export const InvoiceDetailPage = () => {
|
|||||||
|
|
||||||
<DetailAmountInfoSection
|
<DetailAmountInfoSection
|
||||||
amountInfo={ amountInfo }
|
amountInfo={ amountInfo }
|
||||||
show={ showAmount }
|
isOpen={ showAmount }
|
||||||
tid={ tid }
|
tid={ tid }
|
||||||
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
||||||
></DetailAmountInfoSection>
|
></DetailAmountInfoSection>
|
||||||
@@ -100,7 +100,7 @@ export const InvoiceDetailPage = () => {
|
|||||||
|
|
||||||
<DetailPublishInfoSection
|
<DetailPublishInfoSection
|
||||||
publishInfo={ publishInfo }
|
publishInfo={ publishInfo }
|
||||||
show={ showAmount }
|
isOpen={ showAmount }
|
||||||
tid={ tid }
|
tid={ tid }
|
||||||
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
||||||
></DetailPublishInfoSection>
|
></DetailPublishInfoSection>
|
||||||
@@ -109,7 +109,7 @@ export const InvoiceDetailPage = () => {
|
|||||||
|
|
||||||
<DetailReceiverInfoSection
|
<DetailReceiverInfoSection
|
||||||
receiverInfo={ receiverInfo }
|
receiverInfo={ receiverInfo }
|
||||||
show={ showAmount }
|
isOpen={ showAmount }
|
||||||
tid={ tid }
|
tid={ tid }
|
||||||
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
||||||
></DetailReceiverInfoSection>
|
></DetailReceiverInfoSection>
|
||||||
@@ -118,7 +118,7 @@ export const InvoiceDetailPage = () => {
|
|||||||
|
|
||||||
<DetailSupplierInfoSection
|
<DetailSupplierInfoSection
|
||||||
supplierInfo={ supplierInfo }
|
supplierInfo={ supplierInfo }
|
||||||
show={ showAmount }
|
isOpen={ showAmount }
|
||||||
tid={ tid }
|
tid={ tid }
|
||||||
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
onClickToShowInfo={ (info) => onClickToShowInfo(info) }
|
||||||
></DetailSupplierInfoSection>
|
></DetailSupplierInfoSection>
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import { IMAGE_ROOT } from '@/shared/constants/common';
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { AllTransactionList } from '@/entities/transaction/ui/all-transaction-list';
|
import { AllTransactionList } from '@/entities/transaction/ui/all-transaction-list';
|
||||||
import { AllTransactionListItem, TransactionCategory, SortByKeys, AllTransactionStateCode, AllTransactionServiceCode, AllTransactionSearchCl } from '@/entities/transaction/model/types';
|
import { AllTransactionListItem, TransactionCategory, AllTransactionStateCode, AllTransactionServiceCode, AllTransactionSearchCl } from '@/entities/transaction/model/types';
|
||||||
import { useAllTransactionListMutation } from '@/entities/transaction/api/use-all-transaction-list-mutation';
|
import { useAllTransactionListMutation } from '@/entities/transaction/api/use-all-transaction-list-mutation';
|
||||||
import { useAllTransactionListSummaryMutation } from '@/entities/transaction/api/use-all-transaction-list-summary-mutation';
|
import { useAllTransactionListSummaryMutation } from '@/entities/transaction/api/use-all-transaction-list-summary-mutation';
|
||||||
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
||||||
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
import { AllTransactionFilter } from '@/entities/transaction/ui/filter/all-transaction-filter';
|
import { AllTransactionFilter } from '@/entities/transaction/ui/filter/all-transaction-filter';
|
||||||
import { SortOptionsBox } from '@/entities/transaction/ui/sort-options-box';
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
import { FooterItemActiveKey } from '@/entities/common/model/types';
|
import { FooterItemActiveKey } from '@/entities/common/model/types';
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
import { SortByKeys, HeaderType } from '@/entities/common/model/types';
|
||||||
import {
|
import {
|
||||||
useSetOnBack,
|
useSetOnBack,
|
||||||
useSetHeaderTitle,
|
useSetHeaderTitle,
|
||||||
@@ -128,7 +128,7 @@ export const AllTransactionListPage = () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onCliCkToSort = (sort: SortByKeys) => {
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
setSortBy(sort);
|
setSortBy(sort);
|
||||||
callList({sortBy: sort});
|
callList({sortBy: sort});
|
||||||
};
|
};
|
||||||
@@ -227,7 +227,7 @@ export const AllTransactionListPage = () => {
|
|||||||
<div className="filter-section">
|
<div className="filter-section">
|
||||||
<SortOptionsBox
|
<SortOptionsBox
|
||||||
sortBy={ sortBy }
|
sortBy={ sortBy }
|
||||||
onCliCkToSort={ onCliCkToSort }
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
<select
|
<select
|
||||||
value={ selectedServiceCode }
|
value={ selectedServiceCode }
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ import { IMAGE_ROOT } from '@/shared/constants/common';
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { BillingList } from '@/entities/transaction/ui/billing-list';
|
import { BillingList } from '@/entities/transaction/ui/billing-list';
|
||||||
import { BillingListItem, TransactionCategory, SortByKeys, BillingRequestStatus, BillingProcessResult, BillingPaymentMethod, BillingSearchType } from '@/entities/transaction/model/types';
|
import { BillingListItem, TransactionCategory, BillingRequestStatus, BillingProcessResult, BillingPaymentMethod, BillingSearchType } from '@/entities/transaction/model/types';
|
||||||
import { useBillingListMutation } from '@/entities/transaction/api/use-billing-list-mutation';
|
import { useBillingListMutation } from '@/entities/transaction/api/use-billing-list-mutation';
|
||||||
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
||||||
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
import { BillingFilter } from '@/entities/transaction/ui/filter/billing-filter';
|
import { BillingFilter } from '@/entities/transaction/ui/filter/billing-filter';
|
||||||
import { SortOptionsBox } from '@/entities/transaction/ui/sort-options-box';
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
import { BillingRequestStatusBtnGroup } from '@/entities/transaction/model/contant';
|
import { BillingRequestStatusBtnGroup } from '@/entities/transaction/model/contant';
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
import { SortByKeys, HeaderType } from '@/entities/common/model/types';
|
||||||
import {
|
import {
|
||||||
useSetOnBack,
|
useSetOnBack,
|
||||||
useSetHeaderTitle,
|
useSetHeaderTitle,
|
||||||
@@ -110,7 +110,7 @@ export const BillingListPage = () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onCliCkToSort = (sort: SortByKeys) => {
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
setSortBy(sort);
|
setSortBy(sort);
|
||||||
callList({sortBy: sort});
|
callList({sortBy: sort});
|
||||||
};
|
};
|
||||||
@@ -159,7 +159,7 @@ export const BillingListPage = () => {
|
|||||||
<div className="filter-section">
|
<div className="filter-section">
|
||||||
<SortOptionsBox
|
<SortOptionsBox
|
||||||
sortBy={ sortBy }
|
sortBy={ sortBy }
|
||||||
onCliCkToSort={ onCliCkToSort }
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
<div className="excrow">
|
<div className="excrow">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import { IMAGE_ROOT } from '@/shared/constants/common';
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { CashReceiptList } from '@/entities/transaction/ui/cash-receipt-list';
|
import { CashReceiptList } from '@/entities/transaction/ui/cash-receipt-list';
|
||||||
import { CashReceiptListItem, TransactionCategory, SortByKeys, CashReceiptPurposeType, CashReceiptIssueStatus, CashReceiptProcessResult } from '@/entities/transaction/model/types';
|
import { CashReceiptListItem, TransactionCategory, CashReceiptPurposeType, CashReceiptIssueStatus, CashReceiptProcessResult } from '@/entities/transaction/model/types';
|
||||||
import { useCashReceiptListMutation } from '@/entities/transaction/api/use-cash-receipt-list-mutation';
|
import { useCashReceiptListMutation } from '@/entities/transaction/api/use-cash-receipt-list-mutation';
|
||||||
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
||||||
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
import { CashReceiptFilter } from '@/entities/transaction/ui/filter/cash-receipt-filter';
|
import { CashReceiptFilter } from '@/entities/transaction/ui/filter/cash-receipt-filter';
|
||||||
import { SortOptionsBox } from '@/entities/transaction/ui/sort-options-box';
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
import { SortByKeys, HeaderType } from '@/entities/common/model/types';
|
||||||
import {
|
import {
|
||||||
useSetOnBack,
|
useSetOnBack,
|
||||||
useSetHeaderTitle,
|
useSetHeaderTitle,
|
||||||
@@ -94,7 +94,7 @@ export const CashReceiptListPage = () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onCliCkToSort = (sort: SortByKeys) => {
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
setSortBy(sort);
|
setSortBy(sort);
|
||||||
callList({ sortBy: sort });
|
callList({ sortBy: sort });
|
||||||
};
|
};
|
||||||
@@ -185,7 +185,7 @@ export const CashReceiptListPage = () => {
|
|||||||
<div className="filter-section">
|
<div className="filter-section">
|
||||||
<SortOptionsBox
|
<SortOptionsBox
|
||||||
sortBy={sortBy}
|
sortBy={sortBy}
|
||||||
onCliCkToSort={onCliCkToSort}
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
<div>
|
<div>
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ import { IMAGE_ROOT } from '@/shared/constants/common';
|
|||||||
import { PATHS } from '@/shared/constants/paths';
|
import { PATHS } from '@/shared/constants/paths';
|
||||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||||
import { EscrowList } from '@/entities/transaction/ui/escrow-list';
|
import { EscrowList } from '@/entities/transaction/ui/escrow-list';
|
||||||
import { EscrowListItem, TransactionCategory, SortByKeys, EscrowDeliveryStatus, EscrowSearchType, EscrowSettlementStatus } from '@/entities/transaction/model/types';
|
import { EscrowListItem, TransactionCategory, EscrowDeliveryStatus, EscrowSearchType, EscrowSettlementStatus } from '@/entities/transaction/model/types';
|
||||||
import { useEscrowListMutation } from '@/entities/transaction/api/use-escrow-list-mutation';
|
import { useEscrowListMutation } from '@/entities/transaction/api/use-escrow-list-mutation';
|
||||||
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
import { useDownloadExcelMutation } from '@/entities/transaction/api/use-download-excel-mutation';
|
||||||
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
import { DEFAULT_PAGE_PARAM } from '@/entities/common/model/constant';
|
||||||
import { EscrowFilter } from '@/entities/transaction/ui/filter/escrow-filter';
|
import { EscrowFilter } from '@/entities/transaction/ui/filter/escrow-filter';
|
||||||
import { EscrowDeliveryStatusBtnGroup } from '@/entities/transaction/model/contant';
|
import { EscrowDeliveryStatusBtnGroup } from '@/entities/transaction/model/contant';
|
||||||
import { SortOptionsBox } from '@/entities/transaction/ui/sort-options-box';
|
import { SortOptionsBox } from '@/entities/common/ui/sort-options-box';
|
||||||
import { HeaderType } from '@/entities/common/model/types';
|
import { SortByKeys, HeaderType } from '@/entities/common/model/types';
|
||||||
import {
|
import {
|
||||||
useSetOnBack,
|
useSetOnBack,
|
||||||
useSetHeaderTitle,
|
useSetHeaderTitle,
|
||||||
@@ -108,7 +108,7 @@ export const EscrowListPage = () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onCliCkToSort = (sort: SortByKeys) => {
|
const onClickToSort = (sort: SortByKeys) => {
|
||||||
setSortBy(sort);
|
setSortBy(sort);
|
||||||
callList({sortBy: sort});
|
callList({sortBy: sort});
|
||||||
};
|
};
|
||||||
@@ -157,7 +157,7 @@ export const EscrowListPage = () => {
|
|||||||
<div className="filter-section">
|
<div className="filter-section">
|
||||||
<SortOptionsBox
|
<SortOptionsBox
|
||||||
sortBy={ sortBy }
|
sortBy={ sortBy }
|
||||||
onCliCkToSort={ onCliCkToSort }
|
onClickToSort={ onClickToSort }
|
||||||
></SortOptionsBox>
|
></SortOptionsBox>
|
||||||
<div className="excrow">
|
<div className="excrow">
|
||||||
<div className="full-menu-keywords no-padding">
|
<div className="full-menu-keywords no-padding">
|
||||||
|
|||||||
Reference in New Issue
Block a user