Skip to content

Commit

Permalink
ui/ bottom-nav-comment-input
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Oct 24, 2024
1 parent 0e5ddd6 commit b02cdc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions pageTemplates/square/SecretSquare/SecretSquareComments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,16 @@ function SecretSquareComments({ author, comments, refetch }: SecretSquareComment
</Flex>
</Slide>
<Box
h="60px"
position="fixed"
borderTop="var(--border)"
bottom="0"
flex={1}
w="100%"
backgroundColor="white"
pb={`calc(16px + ${iPhoneNotchSize()}px)`}
maxW="var(--max-width)"
pb={`${keypadHeight === 0 ? iPhoneNotchSize() : 0}px`}
>
<Box py={4} borderBottom="var(--border-main)" px={5}>
<Box py={4} borderBottom="var(--border)" px={5}>
<UserCommentInput user={SECRET_USER_SUMMARY} onSubmit={onSubmit} type="message" />
</Box>
</Box>
Expand Down
9 changes: 5 additions & 4 deletions pages/chat/[uid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Slide from "../../components/layouts/PageSlide";
import UserCommentInput from "../../components/molecules/UserCommentInput";
import { useChatMutation } from "../../hooks/chat/mutations";
import { useChatQuery } from "../../hooks/chat/queries";
import { useKeypadHeight } from "../../hooks/custom/useKeypadHeight";
import { useUserInfoQuery } from "../../hooks/user/queries";
import { transferUserName } from "../../recoils/transferRecoils";
import { getDateDiff } from "../../utils/dateTimeUtils";
Expand All @@ -25,6 +26,7 @@ interface Chat {
function Uid() {
const router = useRouter();
const { uid } = useParams<{ uid: string }>() || {};
const keypadHeight = useKeypadHeight();

const userName = useRecoilValue(transferUserName);
const [chats, setChats] = useState<Chat[]>([]);
Expand Down Expand Up @@ -150,17 +152,16 @@ function Uid() {
</Flex>
</Slide>
<Box
h="60px"
borderBottom="var(--border)"
position="fixed"
pb={`calc(16px + ${iPhoneNotchSize()}px)`}
borderTop="var(--border)"
bottom="0"
flex={1}
w="100%"
backgroundColor="white"
maxW="var(--max-width)"
pb={`${keypadHeight === 0 ? iPhoneNotchSize() : 0}px`}
>
<Box py={4} borderBottom="var(--border-main)" px={5}>
<Box py={4} borderBottom="var(--border)" px={5}>
<UserCommentInput user={userInfo} onSubmit={onSubmit} type="message" initialFocus />
</Box>
</Box>
Expand Down

0 comments on commit b02cdc9

Please sign in to comment.