Merged PR 370: 修正の実施

## 概要
[Task2537: 修正の実施](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2537)

- 元PBI or タスクへのリンク(内容・目的などはそちらにあるはず)
- 何をどう変更したか、追加したライブラリなど
子アカウントの「Issue」ボタンは親アカウントのみ表示されるよう修正
(第1階層→第5階層までたどり、「order history」ボタンを押下時、「Issue」ボタンが表示されていた)

- このPull Requestでの対象/対象外
- 影響範囲(他の機能にも影響があるか)
特になし

## レビューポイント
- 特にレビューしてほしい箇所
ボタン表示制御のコード

- 軽微なものや自明なものは記載不要
- 修正範囲が大きい場合などに記載
- 全体的にや仕様を満たしているか等は本当に必要な時のみ記載

## UIの変更
- Before/Afterのスクショなど
- スクショ置き場

## 動作確認状況
- ローカルで確認
## 補足
- 相談、参考資料などがあれば
This commit is contained in:
水本 祐希 2023-08-31 08:55:57 +00:00
parent d3aeaea777
commit b8a41d7b44

View File

@ -27,6 +27,7 @@ import {
cancelIssueAsync, cancelIssueAsync,
} from "features/license/licenseOrderHistory"; } from "features/license/licenseOrderHistory";
import { selectSelectedRow } from "features/license/partnerLicense"; import { selectSelectedRow } from "features/license/partnerLicense";
import { isApproveTier } from "features/auth/utils";
import undo from "../../assets/images/undo.svg"; import undo from "../../assets/images/undo.svg";
import history from "../../assets/images/history.svg"; import history from "../../assets/images/history.svg";
import progress_activit from "../../assets/images/progress_activit.svg"; import progress_activit from "../../assets/images/progress_activit.svg";
@ -282,7 +283,12 @@ export const LicenseOrderHistory: React.FC<LicenseOrderHistoryProps> = (
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */} {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}
<a <a
className={`${styles.colorLink} ${ className={`${styles.colorLink} ${
x.status === STATUS.ISSUE_REQESTING x.status === STATUS.ISSUE_REQESTING &&
/* ログインユーザーの子階層のみissueボタンを表示 */
selectedRow.tier > 1 &&
isApproveTier([
(selectedRow.tier - 1).toString(),
])
? styles.isActive ? styles.isActive
: "" : ""
}`} }`}