mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-07 16:34:24 +01:00
fix: submit bounty modal validation, tags input story
This commit is contained in:
5520
package-lock.json
generated
5520
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,13 @@ export default {
|
||||
argTypes: {
|
||||
backgroundColor: { control: 'color' },
|
||||
},
|
||||
decorators: [WrapForm()]
|
||||
decorators: [WrapForm({
|
||||
defaultValues: {
|
||||
tags: [{
|
||||
title: "Webln"
|
||||
}]
|
||||
}
|
||||
})]
|
||||
} as ComponentMeta<typeof TagsInput>;
|
||||
|
||||
|
||||
|
||||
@@ -8,24 +8,24 @@ export default {
|
||||
|
||||
} as ComponentMeta<typeof Slider>;
|
||||
|
||||
const Template: ComponentStory<typeof Slider> = (args) => <div className="bg-blue-100 max-w-[600px]"><Slider {...args} >
|
||||
<div className="px-64 py-16 bg-gray-300" onClick={() => { alert(1) }}>
|
||||
1
|
||||
const Template: ComponentStory<typeof Slider> = (args) => <div className="overflow-hidden max-w-[770px]"><Slider {...args} >
|
||||
<div className="px-64 py-16 bg-gray-200 border shadow-sm rounded-10" onClick={() => { alert(1) }}>
|
||||
Item 1
|
||||
</div>
|
||||
<div className="px-64 py-16 bg-gray-300" onClick={() => { alert(2) }}>
|
||||
2
|
||||
<div className="px-64 py-16 bg-gray-200 border shadow-sm rounded-10" onClick={() => { alert(2) }}>
|
||||
Item 2
|
||||
</div>
|
||||
<div className="px-64 py-16 bg-gray-300" onClick={() => { alert(3) }}>
|
||||
3
|
||||
<div className="px-64 py-16 bg-gray-200 border shadow-sm rounded-10" onClick={() => { alert(3) }}>
|
||||
Item 3
|
||||
</div>
|
||||
<div className="px-64 py-16 bg-gray-300" onClick={() => { alert(4) }}>
|
||||
4
|
||||
<div className="px-64 py-16 bg-gray-200 border shadow-sm rounded-10" onClick={() => { alert(4) }}>
|
||||
Item 4
|
||||
</div>
|
||||
<div className="px-64 py-16 bg-gray-300" onClick={() => { alert(5) }}>
|
||||
5
|
||||
<div className="px-64 py-16 bg-gray-200 border shadow-sm rounded-10" onClick={() => { alert(5) }}>
|
||||
Item 5
|
||||
</div>
|
||||
<div className="px-64 py-16 bg-gray-300" onClick={() => { alert(6) }}>
|
||||
6
|
||||
<div className="px-64 py-16 bg-gray-200 border shadow-sm rounded-10" onClick={() => { alert(6) }}>
|
||||
Item 6
|
||||
</div>
|
||||
</Slider></div>;
|
||||
|
||||
|
||||
@@ -27,7 +27,12 @@ export default function Login_SuccessCard({ onClose, direction, ...props }: Moda
|
||||
|
||||
const { handleSubmit, control, register, formState: { isValid }, watch } = useForm<IFormInputs>({
|
||||
mode: "onChange",
|
||||
resolver: yupResolver(schema)
|
||||
resolver: yupResolver(schema),
|
||||
defaultValues: {
|
||||
workplan: "",
|
||||
firstDraft: new Date(),
|
||||
completionDate: new Date(),
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user