From 47ba267d5be237f932576927af28d83f522cfc4f Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 26 Feb 2022 18:15:42 -0800 Subject: [PATCH] Fix errors in building --- components/CharLimitedFieldset/index.tsx | 2 +- components/Party/index.tsx | 2 +- components/RaidDropdown/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/CharLimitedFieldset/index.tsx b/components/CharLimitedFieldset/index.tsx index aefd8ab6..ff741c59 100644 --- a/components/CharLimitedFieldset/index.tsx +++ b/components/CharLimitedFieldset/index.tsx @@ -11,7 +11,7 @@ interface Props { onChange?: (event: React.ChangeEvent) => void } -const CharLimitedFieldset = React.forwardRef(function fieldSet(props, ref) { +const CharLimitedFieldset = React.forwardRef(function useFieldSet(props, ref) { const fieldType = (['password', 'confirm_password'].includes(props.fieldName)) ? 'password' : 'text' const [currentCount, setCurrentCount] = useState(0) diff --git a/components/Party/index.tsx b/components/Party/index.tsx index 913ed776..eb3bfb73 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -42,7 +42,7 @@ const Party = (props: Props) => { fetchDetails(shortcode) else appState.party.editable = true - }, [props.slug]) + }, [props.slug, fetchDetails]) // Methods: Creating a new party async function createParty(extra: boolean = false) { diff --git a/components/RaidDropdown/index.tsx b/components/RaidDropdown/index.tsx index 61a1372d..1ab42e81 100644 --- a/components/RaidDropdown/index.tsx +++ b/components/RaidDropdown/index.tsx @@ -12,7 +12,7 @@ interface Props { onBlur: (event: React.ChangeEvent) => void } -const RaidDropdown = React.forwardRef(function fieldSet(props, ref) { +const RaidDropdown = React.forwardRef(function useFieldSet(props, ref) { const [cookies, _] = useCookies(['user']) const headers = (cookies.user != null) ? { headers: { 'Authorization': `Bearer ${cookies.user.access_token}` }