Skip to content

Commit

Permalink
Update: style for the Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonSiby committed Oct 11, 2023
1 parent 4f05e65 commit 067ba89
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/components/BookForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const CreateBook = () => {
<input
type="text"
className="form-control"
placeholder="Book Title"
placeholder="title"
aria-label="Book Title"
name="title"
value={formData.title}
Expand All @@ -85,7 +85,7 @@ const CreateBook = () => {
<input
type="text"
className="form-control"
placeholder="Author Name"
placeholder="author"
aria-label="Author Name"
name="author"
value={formData.author}
Expand All @@ -94,32 +94,39 @@ const CreateBook = () => {
</div>
<div className="form-group my-2">
<select
className="form-select"
className="form-select text-body-secondary p-0"
id="inlineFormSelectPref"
name="categories"
value={formData.categories}
onChange={handleInputChange}
multiple={true}
>
<option className="border-bottom border-info py-1 text-info disabled">
Select Category
</option>
{distinctCategories?.map((category) => (
<option key={category.id} value={category.id}>
{category.name}
<option
key={category.id}
value={category.id}
className="py-1 w-lighter"
>
<small className="py-1 w-lighter">{category.name}</small>
</option>
))}
</select>
</div>
<div className="form-group my-2">
<div className="form-floating">
<textarea
className="form-control"
className="form-control h-75"
placeholder="Leave a comment here"
id="floatingTextarea"
name="description"
value={formData.description}
onChange={handleInputChange}
></textarea>
<label htmlFor="floatingTextarea" className="text-secondary">
details
description
</label>
</div>
</div>
Expand Down

0 comments on commit 067ba89

Please sign in to comment.