Merge main and resolve conflicts
- Keep local changes for refactored detail components - Remove obsolete detail-page files - Maintain bug fixes and type improvements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,8 @@ import { useExtensionAccessCheck } from '@/shared/lib/hooks/use-extension-access
|
||||
import useIntersectionObserver from '@/widgets/intersection-observer';
|
||||
import { PayoutList } from '@/entities/additional-service/ui/payout/payout-list';
|
||||
import { PayoutDetail } from '@/entities/additional-service/ui/payout/detail/payout-detail';
|
||||
import { checkGrant } from '@/shared/lib/check-grant';
|
||||
import { showAlert } from '@/widgets/show-alert';
|
||||
|
||||
export const PayoutListPage = () => {
|
||||
// Access check
|
||||
@@ -88,6 +90,10 @@ export const PayoutListPage = () => {
|
||||
});
|
||||
|
||||
const onClickToNavigation = () => {
|
||||
if (!checkGrant(53, 'W')) {
|
||||
showAlert(t('common.nopermission'));
|
||||
return;
|
||||
}
|
||||
navigate(PATHS.additionalService.payout.request);
|
||||
};
|
||||
|
||||
@@ -144,6 +150,10 @@ export const PayoutListPage = () => {
|
||||
};
|
||||
|
||||
const onClickToOpenEmailBottomSheet = () => {
|
||||
if (!checkGrant(53, 'D')) {
|
||||
showAlert(t('common.nopermission'));
|
||||
return;
|
||||
}
|
||||
setEmailBottomSheetOn(true);
|
||||
};
|
||||
|
||||
@@ -273,7 +283,7 @@ export const PayoutListPage = () => {
|
||||
<button
|
||||
className="download-btn"
|
||||
aria-label={t('common.download')}
|
||||
onClick={() => onClickToOpenEmailBottomSheet()}
|
||||
onClick={onClickToOpenEmailBottomSheet}
|
||||
>
|
||||
<img
|
||||
src={IMAGE_ROOT + '/ico_download.svg'}
|
||||
@@ -323,7 +333,7 @@ export const PayoutListPage = () => {
|
||||
<div className="apply-row">
|
||||
<button
|
||||
className="btn-50 btn-blue flex-1"
|
||||
onClick={() => onClickToNavigation()}
|
||||
onClick={onClickToNavigation}
|
||||
>{t('additionalService.payout.requestTitle')}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user