Skip to content

Commit

Permalink
#3698: Use new FormSelect component in admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsonmez-simsoft committed Oct 13, 2021
1 parent 47d479c commit 6c5ff06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/pages/admin/Index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Field, Form, Formik } from "formik"
import moment from "moment"
import UserActivityTable from "pages/admin/UserActivityTable"
import React, { useContext, useState } from "react"
import { Button, Col, Container, Row } from "react-bootstrap"
import { Button, Col, Container, FormSelect, Row } from "react-bootstrap"
import { connect } from "react-redux"
import { toast } from "react-toastify"
import uuidv4 from "uuid/v4"
Expand Down Expand Up @@ -158,15 +158,15 @@ const AdminIndex = ({ pageDispatchers }) => {
key={key}
component={FieldHelper.SpecialField}
widget={
<Field component="select" className="form-control">
<FormSelect className="form-control">
{Object.values(dropdownField.options).map(
option => (
<option key={option.value} value={option.value}>
{option.label}
</option>
)
)}
</Field>
</FormSelect>
}
>
</Field>
Expand Down

0 comments on commit 6c5ff06

Please sign in to comment.