Skip to content

Commit

Permalink
refactor(formmediainput): add width
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Sep 6, 2023
1 parent 1b0dad3 commit 4a380b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/FormFieldMedia/FormMediaInput.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex } from "@chakra-ui/react"
import { HStack } from "@chakra-ui/react"
import { Button } from "@opengovsg/design-system-react"
import PropTypes from "prop-types"

Expand All @@ -16,7 +16,7 @@ const FormMediaInput = ({
const { isRequired, isDisabled } = useFormContext()

return (
<Flex>
<HStack spacing="0.5rem">
<FormInput
placeholder={placeholder}
value={value}
Expand All @@ -30,7 +30,7 @@ const FormMediaInput = ({
{inlineButtonText}
</Button>
)}
</Flex>
</HStack>
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/components/Homepage/HeroBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const HeroBody = ({
/>
<FormErrorMessage>{errors.subtitle}</FormErrorMessage>
</FormControl>
<Box>
<Box w="100%">
{/* TODO: migrate this to design system components */}
<FormContext
hasError={!!errors.background}
Expand Down

0 comments on commit 4a380b1

Please sign in to comment.