Skip to content

Commit

Permalink
landing 수정
Browse files Browse the repository at this point in the history
- 사용하기 모달로 열리게
  • Loading branch information
Taeyoon-dev committed Aug 28, 2024
1 parent 01d543d commit c564d59
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/main/src/pages/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ import {
Image9,
Logo
} from "@/assets";
import { useAuth } from "@configs/util";
import { Modal } from "@/router/Layout";
import { useAuth } from "@configs/util";
import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";

export const Landing = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
const { getRole } = useAuth();
const navigate = useNavigate();

useEffect(() => {
const role = getRole();
Expand Down Expand Up @@ -55,7 +53,7 @@ export const Landing = () => {
</div>
<div
className="w-36 h-11 border border-[#6D6D6D] flex justify-center items-center font-normal text-[16px] rounded-[22px] mt-6 mb-16 cursor-pointer"
onClick={() => navigate("/login")} // Navigate to login on click
onClick={() => setIsModalOpen(true)}
>
Repo 사용하기
</div>
Expand Down Expand Up @@ -127,7 +125,7 @@ export const Landing = () => {
<p className="text-[#888888]">로그인 하여 바로 사용해 보세요</p>
<div
className="w-36 h-11 border border-[#6D6D6D] flex justify-center items-center rounded-[22px] mt-6 cursor-pointer"
onClick={() => navigate("/login")}
onClick={() => setIsModalOpen(true)}
>
Repo 사용하기
</div>
Expand Down

0 comments on commit c564d59

Please sign in to comment.