Skip to content

Commit cc10739

Browse files
committed
nits
1 parent 4c5cc3c commit cc10739

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/BogForm/BogForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import BogButton from '../BogButton/BogButton';
44
import type { FormEventHandler } from 'react';
55

66
export interface BogFormProps {
7-
onSubmit?: FormEventHandler<HTMLFormElement>;
7+
onSubmit: FormEventHandler<HTMLFormElement>;
88
submitLabel?: string;
99
style?: React.CSSProperties;
1010
className?: string;

src/components/BogTextInput/BogTextInput.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styles from './styles.module.css';
33

44
export interface BogTextInputProps {
55
multiline?: boolean;
6-
type?: 'text' | 'email' | 'password' | 'tel';
6+
type?: 'text' | 'email' | 'password' | 'tel' | 'search';
77
name: string;
88
label: string;
99
placeholder?: string;
@@ -26,7 +26,7 @@ export function BogTextInput({
2626
className,
2727
}: BogTextInputProps) {
2828
return (
29-
<Form.Field name={name}>
29+
<Form.Field name={name} className={className} style={style}>
3030
<div className="flex flex-row gap-x-2 text-paragraph-2">
3131
<Form.Label>{label}</Form.Label>
3232
<Form.Message match="valueMissing" className="text-status-red-text">

src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default function Home() {
217217
}}
218218
>
219219
<BogTextInput name="name" label="Name" placeholder="Enter your name" />
220-
<BogTextInput name="email" label="Email" placeholder="Enter your email" />
220+
<BogTextInput name="email" label="Email" placeholder="Enter your email" type="email" />
221221
<BogTextInput
222222
name="password"
223223
label="Password"

0 commit comments

Comments
 (0)