Skip to content

Commit 1a4b2d8

Browse files
committed
fix: 구독이 아닐 경우로 분기 처리 변경
1 parent 1da4bdc commit 1a4b2d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/admin-new/(components)/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function Sidebar(props: Props) {
9090
</button>
9191
</li>
9292
</ul>
93-
{status?.includes("FREE") && (
93+
{!status?.includes("SUBSCRIPTION") && (
9494
<div className="sidebar__subscribe">
9595
<p className="sidebar__subscribe-title">
9696
구독하고 힌트에 사진을 추가해 보세요

app/admin-new/(components)/ThemeDrawer/ThemeDrawerAnswer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const ThemeDrawerAnswer = ({
7272
const answerInputRef = useRef<HTMLInputElement>(null);
7373

7474
const handleAnswerClick = (e: React.MouseEvent<HTMLButtonElement>) => {
75-
if (status?.includes("FREE")) {
75+
if (!status?.includes("SUBSCRIPTION")) {
7676
e.preventDefault();
7777
window.open(subscribeLinkURL, "_blank", "noopener,noreferrer");
7878
return;

app/admin-new/(components)/ThemeDrawer/ThemeDrawerHint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const ThemeDrawerHint = ({
7070
const hintInputRef = useRef<HTMLInputElement>(null);
7171

7272
const handleHintClick = (e: React.MouseEvent<HTMLButtonElement>) => {
73-
if (status?.includes("FREE")) {
73+
if (!status?.includes("SUBSCRIPTION")) {
7474
e.preventDefault();
7575
window.open(subscribeLinkURL, "_blank", "noopener,noreferrer");
7676
return;

0 commit comments

Comments
 (0)