-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabled work in progress modal when switching to the PSP34 standard bumped ink generator version to 0.3.8 Signed-off-by: Maciek Malik <[email protected]>
- Loading branch information
1 parent
6e433f1
commit 5864a3e
Showing
9 changed files
with
62 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/components/homepage/sidebar-form/form-sections/MetadataPSP22.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { useFormContext } from 'react-hook-form'; | ||
import { Input } from '@/components/data-entry/Input'; | ||
import ExpandableFilterContainer from '@/components/homepage/sidebar-form/ExpandableFilterContainer'; | ||
import BeaverMemo from '@/components/homepage/sidebar-form/form-sections/BeaverMemo'; | ||
import { METADATA22 } from '@/components/homepage/sidebar-form/formConstants'; | ||
import { dictionary } from '@/libs/en'; | ||
|
||
export default function MetadataPSP22() { | ||
const { resetField } = useFormContext(); | ||
|
||
const handleResetMetadataSection = () => { | ||
METADATA22.forEach(({ name }) => { | ||
resetField(name); | ||
}); | ||
}; | ||
|
||
return ( | ||
<ExpandableFilterContainer | ||
name={dictionary.sidebarForm.sections.metadata.title} | ||
onReset={handleResetMetadataSection} | ||
> | ||
<BeaverMemo /> | ||
{METADATA22.map(({ label, name, placeholder, inputType, disabled }) => ( | ||
<Input | ||
key={name} | ||
label={label} | ||
name={name} | ||
placeholder={placeholder} | ||
inputType={inputType} | ||
disabled={disabled} | ||
/> | ||
))} | ||
</ExpandableFilterContainer> | ||
); | ||
} |
23 changes: 0 additions & 23 deletions
23
src/components/homepage/sidebar-form/form-sections/Standard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters