Skip to content

Commit

Permalink
✨Feature - PROMA API 페이지 구현 (#73)
Browse files Browse the repository at this point in the history
* ✨ feat: openapi 관련 api 연결 및 docs 페이지 UI 구성

* ✨feat:  openapi 소개 페이지 UI 변경 및 PROMA API 재발행 기능 추가

* ✨ feat: 프롬프트 평가 기능 추가

* 🐛 fix: 블럭 수정하기 버그 수정

* 💄 style: socialLogin 페이지 스타일링

* ✨ feat 평가 아이콘 및 라이브러리 추가

* 💄 style: PROMA API 페이지 관련 스타일 개선

* 💄 style: 기타 스타일 개선

* 🐛 fix: add // eslint-disable-next-line

* 🐛 fix: 파일 이름 변경

* Delete src/pages/OpenAPIDocsPage.jsx

* Delete src/pages/OpenAPIDocsPage.module.css

* 🐛 fix: error 수정

* 🐛 fix: 파일 이름 수정

* 🐛 fix: 파일 삭제

---------

Co-authored-by: kyujenius <[email protected]>
  • Loading branch information
leejs0823 and Kyujenius authored Oct 17, 2024
1 parent b871971 commit a4d86fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions src/components/OpenAPI/OpenAPI/components/CopyButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Alert = React.forwardRef(function Alert(props, ref) {

function CopyButton({ category, text }) {
const [snackbarOpen, setSnackbarOpen] = useState(false);
const [copied, setCopied] = useState(false);

const handleSnackbarClose = (event, reason) => {
if (reason === "clickaway") {
Expand All @@ -22,7 +21,6 @@ function CopyButton({ category, text }) {
navigator.clipboard
.writeText(text)
.then(() => {
setCopied(true);
setSnackbarOpen(true);
})
.catch((err) => console.errer("Failed to copy"));
Expand Down
9 changes: 1 addition & 8 deletions src/pages/aboutOpenAPIPage.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import styles from "./aboutOpenAPIPage.module.css";
import logIcon from "../assets/images/logIcon.svg";
Expand All @@ -7,15 +7,8 @@ import SquareButton from "../components/OpenAPI/components/SquareButton";
import PromptListModal from "../components/OpenAPI/OpenAPI/modal/PromptListModal";
function AboutOpenAPIPage() {
const [isOpenModel, setIsOpenModel] = useState(false);
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
const navigate = useNavigate();

useEffect(() => {
const handleResize = () => setWindowWidth(window.innerWidth);
window.addEventListener("resize", handleResize);
return () => window.removeEventListener("resize", handleResize);
}, []);

const openModal = () => {
setIsOpenModel(true);
};
Expand Down

0 comments on commit a4d86fe

Please sign in to comment.