Minor random fixes

This commit is contained in:
Patrick Fic
2020-07-23 14:39:45 -07:00
parent 8a4f0dda44
commit acd8984d5b
18 changed files with 389 additions and 353 deletions

View File

@@ -1,12 +1,12 @@
import React, { useState, useEffect } from "react";
import React, { useState, useEffect, forwardRef } from "react";
import { Select } from "antd";
import { useTranslation } from "react-i18next";
const { Option } = Select;
const ContractStatusComponent = ({
value = "contracts.status.new",
onChange
}) => {
const ContractStatusComponent = (
{ value = "contracts.status.new", onChange },
ref
) => {
const [option, setOption] = useState(value);
const { t } = useTranslation();
@@ -20,7 +20,7 @@ const ContractStatusComponent = ({
<Select
value={option}
style={{
width: 100
width: 100,
}}
onChange={setOption}
>
@@ -32,4 +32,4 @@ const ContractStatusComponent = ({
</Select>
);
};
export default ContractStatusComponent;
export default forwardRef(ContractStatusComponent);