-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: 매칭테스트 결과 ssr로 변경, 카카오톡 공유 키 오류 해결
- Loading branch information
Showing
5 changed files
with
44 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use client'; | ||
|
||
import ResultModal from '@/components/matchingtest/ResultModal'; | ||
import React, { useState } from 'react'; | ||
|
||
const ShareButton = () => { | ||
const [isModalOpen, setModalOpen] = useState(false); | ||
const handleShareClick = () => { | ||
setModalOpen(true); | ||
}; | ||
|
||
return ( | ||
<> | ||
{isModalOpen ? <ResultModal onClose={() => setModalOpen(false)} /> : null} | ||
<button | ||
type="button" | ||
className="h2 rounded bg-acodegray-50 text-black w-[166px] h-[56px] inline-flex items-center justify-center" | ||
onClick={handleShareClick} | ||
> | ||
공유하기 | ||
</button> | ||
</> | ||
); | ||
}; | ||
|
||
export default ShareButton; |