*이미지 등록은 최대 1개까지 가능합니다.
+ {!previewUrl && (
+ *이미지 등록은 최대 1개까지 가능합니다.
+ )}
);
};
diff --git a/src/components/ImageFileUploader/ImageFileUploaderStyle.js b/src/components/ImageFileUploader/ImageFileUploaderStyle.js
index cae79bf0..b2e246d0 100644
--- a/src/components/ImageFileUploader/ImageFileUploaderStyle.js
+++ b/src/components/ImageFileUploader/ImageFileUploaderStyle.js
@@ -29,8 +29,8 @@ const styles = {
align-items: center;
justify-content: center;
gap: 12px;
- width: calc(48% - 12px);
- max-width: 168px;
+ width: 50%;
+ max-width: 50%;
aspect-ratio: 1/1;
flex-grow: 1;
background-color: var(--gray200);
@@ -38,10 +38,6 @@ const styles = {
border-radius: var(--border-radius-sm);
font-size: 1rem;
- @media (min-width: 600px) {
- max-width: var(--form-input-max-height);
- }
-
@media (min-width: 768px) {
width: auto;
height: var(--form-input-max-height);
@@ -51,7 +47,7 @@ const styles = {
ImagePreviewStyle: css`
position: relative;
- width: calc(48% - 12px);
+ width: 50%;
aspect-ratio: 1/1;
flex-grow: 1;
border-radius: var(--border-radius-sm);
diff --git a/src/components/Pagination/CursorPagination.jsx b/src/components/Pagination/CursorPagination.jsx
new file mode 100644
index 00000000..55c38f25
--- /dev/null
+++ b/src/components/Pagination/CursorPagination.jsx
@@ -0,0 +1,15 @@
+import usePaginationCursor from "@/hooks/usePaginationCursor";
+import Pagination from "./Pagination";
+
+const CursorPagination = ({ firstCursor = null, handleLoad }) => {
+ const { pageData, pageActions } = usePaginationCursor({
+ firstCursor,
+ onCursorChange: (nextCursor) => {
+ handleLoad(nextCursor, pageActions.setNextCursor);
+ },
+ });
+
+ return
- {currentPages.map((page) => (
-
- ))}
+
+ {isCursor ? (
+ <>
+
+
+ >
+ ) : (
+ currentPages.map((page) => (
+
+ ))
+ )}
+
);
};
@@ -76,12 +70,6 @@ const TagsInputStyle = css`
}
`;
-const TagListStyle = css`
- display: flex;
- flex-wrap: wrap;
- gap: 12px;
-`;
-
const errorMessageStyle = css`
display: block;
color: var(--error-color);
diff --git a/src/components/ui/Textarea/Textarea.jsx b/src/components/ui/Textarea/Textarea.jsx
index ba772981..a810dfa0 100644
--- a/src/components/ui/Textarea/Textarea.jsx
+++ b/src/components/ui/Textarea/Textarea.jsx
@@ -1,30 +1,32 @@
/** @jsxImportSource @emotion/react */
import { css } from "@emotion/react";
-const Textarea = ({ ...props }) => {
- const { id, name, placeholder, onChange, onBlur } = props;
+const Textarea = ({ id, name, placeholder, onChange, onBlur, ...props }) => {
return (