mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
fix: lint
This commit is contained in:
committed by
Scott Stevenson
parent
a95ef4e3f3
commit
c12bb2d607
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user