Skip to content

Commit

Permalink
fix(lastlog.jsx): back button when last log
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub committed Aug 3, 2024
1 parent 762b3a5 commit bb78452
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pages/Mypage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,27 @@ import TheModal from "../components/TheModal";
import TheButton from "../styles/TheButton";
import Header from "../components/Header";
import useWindowSize from "../tools/useWindowSize";
import { useNavigate, useSearchParams } from "react-router-dom";

function Mypage() {
const resetAuth = useResetRecoilState(authJwtAtom);
const userData = useRecoilValue(userDetailAtom);
const fetchBe = useFetchBe();
const [swidth] = useWindowSize();

const navigate = useNavigate();
const [params] = useSearchParams();

const mainRef = useRef();

const [groupMode, setGroupMode] = useState(false);
const [showRecord, setShowRecord] = useState("init");
// const [showRecord, setShowRecord] = useState("init");
const showRecord = params.get("showRecord") || "hidden";
const setShowRecord = (value) =>
value === "show"
? navigate("/mypage?showRecord=" + value)
: navigate("/mypage");

const [showCustomModal, setShowCustomModal] = useState("initial");
const [customValue, setCustomValue] = useState("");
const [loading, setLoading] = useState({
Expand Down

0 comments on commit bb78452

Please sign in to comment.