로그인 위치 변경
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
HeaderType,
|
||||
HeaderNavigationProps
|
||||
} from '@/entities/common/model/types';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
export const HeaderNavigation = ({
|
||||
onBack,
|
||||
@@ -15,6 +17,9 @@ export const HeaderNavigation = ({
|
||||
setMenuOn,
|
||||
favoriteEdit
|
||||
}: HeaderNavigationProps) => {
|
||||
|
||||
let [selectOptions, setSelectOptions] = useState<Array<Record<string, string>>>([]);
|
||||
|
||||
const {
|
||||
navigate,
|
||||
navigateBack
|
||||
@@ -39,6 +44,11 @@ export const HeaderNavigation = ({
|
||||
const onClickToGoToAlarm = () => {
|
||||
navigate(PATHS.alarm.list);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
let mids = useStore.getState().UserStore.selectOptionsMids;
|
||||
setSelectOptions(mids);
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -64,9 +74,11 @@ export const HeaderNavigation = ({
|
||||
<h1 className="app-title blind">나이스가맹점관리자</h1>
|
||||
<div className="input-wrapper">
|
||||
<select className="heading-select">
|
||||
<option value="1">madzoneviper</option>
|
||||
<option value="2">stormflarewolf</option>
|
||||
<option value="3">blazefangco</option>
|
||||
{ selectOptions && selectOptions.length > 0 &&
|
||||
selectOptions.map((value, index) => (
|
||||
<option value={ value.value }>{ value.name }</option>
|
||||
))
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user