= ({ register }) => {
return (
{wordTitleText}
diff --git a/src/features/setting/components/SubmitForm/index.tsx b/src/features/setting/components/SubmitForm/index.tsx
index 4a54b76..0e30e37 100644
--- a/src/features/setting/components/SubmitForm/index.tsx
+++ b/src/features/setting/components/SubmitForm/index.tsx
@@ -1,15 +1,31 @@
import { useAtom } from 'jotai';
-import { useEffect } from 'react';
+import { FunctionComponent, useEffect } from 'react';
+import {
+ UseFormHandleSubmit,
+ SubmitHandler,
+ UseFormRegister,
+ Control,
+} from 'react-hook-form';
-import LayoutBottomBtn from '../../../shared/layout/components/BottomBtn';
-import useSetting from '../../hooks/useSetting';
import { activeSaveAtom } from '../../../shared/layout/atom';
+import { Inputs } from '../../types';
import DailySticker from './DailySticker';
import DailyWord from './DailyWord';
-const SubmitForm = () => {
- const { handleSubmit, onSubmit } = useSetting();
+type SubmitFormProps = {
+ handleSubmit: UseFormHandleSubmit;
+ onSubmit: SubmitHandler;
+ register: UseFormRegister;
+ control: Control;
+};
+
+const SubmitForm: FunctionComponent = ({
+ handleSubmit,
+ onSubmit,
+ register,
+ control,
+}) => {
const [activeSave] = useAtom(activeSaveAtom);
useEffect(() => {
@@ -21,9 +37,8 @@ const SubmitForm = () => {
return (
);
};
diff --git a/src/features/setting/style/index.scss b/src/features/setting/style/index.scss
index ab91c42..40cc527 100644
--- a/src/features/setting/style/index.scss
+++ b/src/features/setting/style/index.scss
@@ -1,12 +1,11 @@
.setting {
&-container {
width: 100%;
- height: calc(100% - 78px);
+ height: calc(100% - 159px);
background: #F7F7F7;
}
&-preview-container {
- height: 176px;
display: flex;
padding: 24px 16px;
flex-direction: column;
@@ -16,7 +15,7 @@
}
&-preview-title-text {
- height: 36px;
+ height: fit-content;
margin-bottom: 4px;
color: #191919;
text-align: center;
@@ -27,7 +26,6 @@
}
&-preview-sub-text {
- height: 72px;
margin-bottom: 16px;
color: #9797AE;
font-size: 14px;
@@ -102,6 +100,7 @@
display: flex;
height: 100%;
width: 100%;
+ justify-content: space-between;
align-items: flex-start;
align-content: flex-start;
gap: 8px;
@@ -115,4 +114,11 @@
outline: 1px solid #000;
}
}
+
+ &-sticker-width {
+ width: 48%;
+ img {
+ width: 100%;
+ }
+ }
}
\ No newline at end of file