Skip to content

Commit

Permalink
icon will be camera when isMobile is true
Browse files Browse the repository at this point in the history
  • Loading branch information
mingming-ma committed Dec 12, 2023
1 parent a857ca7 commit cd6c3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PromptForm/ClipIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useRef } from "react";
import { IconButton, Input } from "@chakra-ui/react";
import { BsPaperclip } from "react-icons/bs";
import { BsPaperclip, BsCamera } from "react-icons/bs";

import useMobileBreakpoint from "../../hooks/use-mobile-breakpoint";

Expand Down Expand Up @@ -48,7 +48,7 @@ export default function ClipIcon({ isDisabled = false, onFileSelected }: ClipIco
isDisabled={isDisabled}
colorScheme={colorScheme}
variant={isMobile ? "outline" : "ghost"}
icon={<BsPaperclip />}
icon={isMobile ? <BsCamera /> : <BsPaperclip />}
aria-label="Attach file"
size={isMobile ? "lg" : "md"}
fontSize="18px"
Expand Down

0 comments on commit cd6c3d0

Please sign in to comment.