fix: lint

This commit is contained in:
vidvidvid
2022-01-26 08:35:37 +01:00
committed by Scott Stevenson
parent a95ef4e3f3
commit c12bb2d607
2 changed files with 12 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ export interface CreateQuestFormInputs {
externalLink?: string | null;
cooldown?: number | null;
skills: SkillOption[];
roles: [];
}
const MetaFamGuildId = 'f94b7cd4-cf29-4251-baa5-eaacab98a719';
@@ -123,6 +124,7 @@ type Props = {
fetching?: boolean;
submitLabel: string;
loadingLabel: string;
roleChoices: [];
};
export const QuestForm: React.FC<Props> = ({
@@ -134,7 +136,9 @@ export const QuestForm: React.FC<Props> = ({
submitLabel,
loadingLabel,
editQuest,
roleChoices,
}) => {
console.log('roleChoices', roleChoices);
const defaultValues = useMemo(() => getDefaultFormValues(editQuest, guilds), [
editQuest,
guilds,

View File

@@ -31,6 +31,7 @@ const CreateQuestPage: React.FC<Props> = ({ guilds, skillChoices }) => {
repetition: (data.repetition as unknown) as QuestRepetition_ActionEnum,
cooldown: transformCooldownForBackend(cooldown, repetition),
skillsId: skills.map((s) => s.id),
roles_id: [],
};
createQuest({
@@ -70,7 +71,14 @@ const CreateQuestPage: React.FC<Props> = ({ guilds, skillChoices }) => {
<MetaHeading mb={4}>Create a Quest</MetaHeading>
<QuestForm
<<<<<<< develop
{...{ guilds, skillChoices, onSubmit }}
=======
guilds={guilds}
skillChoices={skillChoices}
roleChoices={[]}
onSubmit={onSubmit}
>>>>>>> fix: lint
success={!!createQuestState.data?.createQuest?.success}
fetching={createQuestState.fetching}
submitLabel="Create Quest"