Skip to content

Commit

Permalink
build: 빌드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thgee committed Aug 15, 2024
1 parent 47da9cc commit 984abf9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
3 changes: 0 additions & 3 deletions packages/service/src/Demo/pages/ButtonDemoPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button, ButtonVariant } from "@service/common/components/Button";
import { theme } from "@watermelon-clap/core/src/theme";
import { css } from "@emotion/react";
import { ClipBoardButton } from "@service/common/components/ClipBoardButton";
import { CheckBox } from "@service/common/components/CheckBox";
import { useState } from "react";
import { ReactComponent as ClipBoardIcon } from "public/icons/clipboard.svg";
Expand Down Expand Up @@ -67,8 +66,6 @@ const ButtonDemoPage = () => {
button
</Button>

<ClipBoardButton />

<CheckBox
isChecked={isChecked1}
setIsChecked={setIsChecked1}
Expand Down
15 changes: 9 additions & 6 deletions packages/service/src/apis/lottery/apiGetLotteryStatus.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { customFetch } from "@watermelon-clap/core/src/utils";
import { customFetch, getAccessToken } from "@watermelon-clap/core/src/utils";

interface IApiGetLotteryStatus {
rank: number;
miniature: boolean;
applied: boolean;
}

export const apiGetLotteryStatus = (): Promise<IApiGetLotteryStatus> => {
return customFetch(
`${import.meta.env.VITE_BACK_BASE_URL}/event/lotteries/rank`,
).then((res) => res.json());
};
export const apiGetLotteryStatus = (): Promise<IApiGetLotteryStatus> =>
customFetch(`${import.meta.env.VITE_BACK_BASE_URL}/event/lotteries/rank`, {
headers: {
Authorization: `Bearer ${getAccessToken()}`,
},
}).then((res) => {
return res.json();
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { ReactComponent as ClipBoardIcon } from "public/icons/clipboard.svg";

interface IClipBoardButton {
copyRef: React.MutableRefObject<null>;
copyRef: any;
}
const ClipBoardButton = ({ copyRef }: IClipBoardButton) => {
const [isCliped, setIsCliped] = useState<boolean>(false);
Expand All @@ -18,7 +18,7 @@ const ClipBoardButton = ({ copyRef }: IClipBoardButton) => {

const handleCopy = () => {
const textToCopy = copyRef?.current?.textContent;
navigator.clipboard.writeText(textToCopy);
navigator.clipboard.writeText(textToCopy as string);
};

return (
Expand Down

0 comments on commit 984abf9

Please sign in to comment.