diff --git a/packages/web/src/components/molecules/ModalInnerTextBox.tsx b/packages/web/src/components/molecules/ModalInnerTextBox.tsx
index 62339219..095dd879 100644
--- a/packages/web/src/components/molecules/ModalInnerTextBox.tsx
+++ b/packages/web/src/components/molecules/ModalInnerTextBox.tsx
@@ -1,8 +1,5 @@
import React, { type PropsWithChildren } from "react";
import {
- BorderedBox,
- Box,
- Text,
GrayTextButton,
Scroll,
TextInput,
@@ -29,6 +26,9 @@ import {
gap,
border,
round,
+ row,
+ center,
+ justify,
} from "@biseo/web/styles";
interface ModalInnerProps extends PropsWithChildren {
@@ -80,92 +80,66 @@ export const ModalInner: React.FC & SubComponents = ({
children,
required = false,
}: ModalInnerProps) => (
-
-
-
-
-
- {title}
-
- {required && (
-
- *
-
- )}
-
+
+
+
+
+
{title}
+ {required &&
*
}
+
{count !== undefined && (
-
- {count}
-
+
)}
-
+
{buttonText}
-
+
{children}
-
+
);
const TextBox: React.FC = ({ children = null }) => (
-
-
- {children}
-
-
+ {children}
+
);
ModalInner.TextBox = TextBox;
const WhiteTextBox: React.FC = ({ children = null }) => (
-
-
- {children}
-
-
+ {children}
+
);
ModalInner.WhiteTextBox = WhiteTextBox;
const InputBox: React.FC = ({ value = undefined, onChange }) => (
-
+
-
+
);
ModalInner.InputBox = InputBox;
@@ -173,22 +147,14 @@ const TextAreaInputBox: React.FC = ({
value = undefined,
onChange,
}) => (
-
+
-
+
);
ModalInner.TextAreaInputBox = TextAreaInputBox;
@@ -198,15 +164,7 @@ const TextButton: React.FC = ({
onClick,
onSubmit,
}) => (
-
+
);
ModalInner.TextButton = TextButton;
@@ -232,44 +190,46 @@ const VoteOptions: React.FC = ({ children = null }) => {
${scrollBar}
overflow-y: scroll;
`;
+ const flexWrap = css`
+ flex-wrap: wrap;
+ `;
return (
-
{children}
-
+
);
};
ModalInner.VoteOptions = VoteOptions;
const VoteOption: React.FC = ({ children = null }) => (
-
-
- {children}
-
-
+ {children}
+
);
ModalInner.VoteOption = VoteOption;
@@ -307,61 +267,60 @@ const VoteChoice: React.FC void }> = ({
children = null,
onClick = () => {},
}) => (
-
-
{children}
-
+
-
+
+
-
+
);
ModalInner.VoteChoice = VoteChoice;
const TagChoice: React.FC = ({ children = null }) => (
-
-
- {children}
-
-
+ {children}
+
);
ModalInner.TagChoice = TagChoice;