support 키 변경 관련
This commit is contained in:
@@ -14,6 +14,9 @@ export const FaqDetailPage = () => {
|
||||
const { navigate } = useNavigate();
|
||||
const location = useLocation();
|
||||
|
||||
const [cursorId, setCursorId] = useState<number>(0);
|
||||
const [seq, setSeq] = useState<string>('');
|
||||
const [category, setCategory] = useState<string>('');
|
||||
const [title, setTitle] = useState<string>('');
|
||||
const [contents, setContents] = useState<string>('');
|
||||
|
||||
@@ -25,6 +28,9 @@ export const FaqDetailPage = () => {
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
setCursorId(location?.state.cursorId);
|
||||
setSeq(location?.state.seq);
|
||||
setCategory(location?.state.category);
|
||||
setTitle(location?.state.title);
|
||||
setContents(location?.state.contents);
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user