로그인 위치 변경

This commit is contained in:
focp212@naver.com
2025-09-30 16:42:09 +09:00
parent 4428528a65
commit 5c43550a22
3 changed files with 164 additions and 152 deletions

View File

@@ -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>