Skip to content

Commit

Permalink
feat: Updated packages/hub/src/relative-values/com
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Oct 27, 2023
1 parent d97a67a commit 38739c1
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { toast } from 'react-toastify';
import { Button, TextFormField } from "@quri/ui";

import { SlugFormField } from "@/components/ui/SlugFormField";
import { updateRelativeValuesDefinition } from "@/graphql/mutations/updateRelativeValuesDefinition";
import { updateRelativeValuesDefinition } from "@/graphql/mutations";
import { FormShape } from "./FormShape";

// Removed exportData function as it was not performing any operations on the data
Expand Down Expand Up @@ -40,20 +40,6 @@ export const RelativeValuesDefinitionForm: FC<Props> = ({
return (
<FormProvider {...form}>
<form onSubmit={onSubmit}>
<div className="space-y-2">
{withoutSlug ? null : (
<SlugFormField<FormShape>
name="slug"
label="Slug"
placeholder="my_definition"
/>
)}
<TextFormField<FormShape>
name="title"
label="Title"
placeholder="My definition"
/>
</div>
<div className="mt-4">
<Button onClick={onSubmit} theme="primary">
Save
Expand Down

0 comments on commit 38739c1

Please sign in to comment.