-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from clubedevit/Resumodavaga
Resumo da vaga
- Loading branch information
Showing
7 changed files
with
337 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import JobPostingForm from '../components/molecules/JobPostingForm/index' | ||
import JobPostingForm2 from '../components/molecules/JobPostingForm2/resumo' | ||
|
||
export default function Home() { | ||
return ( | ||
|
||
<> | ||
<JobPostingForm2></JobPostingForm2> | ||
<JobPostingForm></JobPostingForm> | ||
|
||
</> | ||
|
||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
import { Label } from './label'; | ||
import { ContainerInput , Field } from './style' | ||
import { Label } from "./label"; | ||
import { ContainerInput, Field } from "./style"; | ||
|
||
interface InputFormProps { | ||
id: string; | ||
name: string; | ||
type: string; | ||
placeholder: string; | ||
label: string; | ||
width: string; | ||
height?: number | ||
id: string; | ||
name: string; | ||
type: string; | ||
placeholder: string; | ||
label: string; | ||
width?: string; | ||
height?: number; | ||
options?: string[]; | ||
} | ||
|
||
export default function InputForm | ||
({ | ||
id, | ||
name, | ||
type, | ||
placeholder, | ||
label, | ||
width, | ||
height | ||
} : InputFormProps) | ||
|
||
{ | ||
return ( | ||
<ContainerInput> | ||
<Label | ||
htmlFor={id} | ||
name={label} | ||
/> | ||
<Field | ||
id={id} | ||
name={name} | ||
type={type} | ||
placeholder={placeholder} | ||
width={width} | ||
height={height} | ||
/> | ||
</ContainerInput> | ||
) | ||
} | ||
export default function InputForm({ | ||
id, | ||
name, | ||
type, | ||
placeholder, | ||
label, | ||
width, | ||
height, | ||
options, | ||
|
||
}: InputFormProps) { | ||
return ( | ||
<ContainerInput> | ||
<Label htmlFor={id} name={label}/> | ||
<Field | ||
id={id} | ||
name={name} | ||
type={type} | ||
placeholder={placeholder} | ||
width={width} | ||
height={height} | ||
as={options ? "select" : "input"} | ||
> | ||
{options?.map((option) => ( | ||
<option key={option} value={option}>{option}</option> | ||
))} | ||
</Field> | ||
</ContainerInput> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.