발전시뮬레이션 팝업창 오픈 소스 및 메뉴 숨김처리
This commit is contained in:
parent
a6284ad3eb
commit
e24f534d9b
@ -14,7 +14,6 @@ NEXT_PUBLIC_CONVERTER_API_URL="https://v2.convertapi.com/convert/dwg/to/png?Secr
|
|||||||
|
|
||||||
NEXT_PUBLIC_Q_ORDER_AUTO_LOGIN_URL="http://q-order-stg.q-cells.jp:8120/eos/login/autoLogin"
|
NEXT_PUBLIC_Q_ORDER_AUTO_LOGIN_URL="http://q-order-stg.q-cells.jp:8120/eos/login/autoLogin"
|
||||||
NEXT_PUBLIC_Q_MUSUBI_AUTO_LOGIN_URL="http://q-musubi-stg.q-cells.jp:8120/qm/login/autoLogin"
|
NEXT_PUBLIC_Q_MUSUBI_AUTO_LOGIN_URL="http://q-musubi-stg.q-cells.jp:8120/qm/login/autoLogin"
|
||||||
NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL="http://q-order-stg.q-cells.jp:8120/eos/simulation/auth"
|
|
||||||
NEXT_PUBLIC_ECONOMIC_SIMULATION_URL="http://q-order-stg.q-cells.jp:8120/eos/simulation/list"
|
NEXT_PUBLIC_ECONOMIC_SIMULATION_URL="http://q-order-stg.q-cells.jp:8120/eos/simulation/list"
|
||||||
|
|
||||||
# 테스트용
|
# 테스트용
|
||||||
|
|||||||
@ -204,10 +204,10 @@ export default function Header(props) {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ id: 8, name: 'qna.title', url: '/community/qna', children: [] },
|
{ id: 8, name: 'qna.title', url: '/community/qna', children: [] },
|
||||||
...(process.env.NEXT_PUBLIC_RUN_MODE !== 'production'
|
process.env.NEXT_PUBLIC_RUN_MODE !== 'production'
|
||||||
? [{ id: 9, name: 'header.menus.economic.simulation', action: openEconomicSimulation, children: [] }]
|
? { id: 9, name: 'header.menus.economic.simulation', action: openEconomicSimulation, children: [] }
|
||||||
: []),
|
: null,
|
||||||
]
|
].filter(Boolean)
|
||||||
|
|
||||||
const syncSession = useCallback(() => {
|
const syncSession = useCallback(() => {
|
||||||
setSessionState({ ...userSession })
|
setSessionState({ ...userSession })
|
||||||
@ -258,7 +258,7 @@ export default function Header(props) {
|
|||||||
>
|
>
|
||||||
{menu.children.length === 0 ? (
|
{menu.children.length === 0 ? (
|
||||||
menu.action ? (
|
menu.action ? (
|
||||||
<button key={`${menu.id}`} onClick={() => menu.action()}>
|
<button key={`${menu.id}`} className="no-arrow" onClick={() => menu.action()}>
|
||||||
{getMessage(menu.name)}
|
{getMessage(menu.name)}
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@ -79,6 +79,9 @@ header{
|
|||||||
background: url(/static/images/common/nav-arr.svg)no-repeat center;
|
background: url(/static/images/common/nav-arr.svg)no-repeat center;
|
||||||
transition: all .17s ease-in-out;
|
transition: all .17s ease-in-out;
|
||||||
}
|
}
|
||||||
|
&.no-arrow:after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&:last-child{
|
&:last-child{
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user