-
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.
- Loading branch information
1 parent
211edb2
commit 472a232
Showing
7 changed files
with
47 additions
and
44 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
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 |
---|---|---|
@@ -1,15 +1,29 @@ | ||
import { type EditorForm } from '../forms/editor.structure' | ||
import Input from '../views/atoms/forms/Input.atom' | ||
import { string } from 'yup' | ||
|
||
export interface IStack { | ||
id: number | ||
|
||
description: string | ||
name: string | ||
} | ||
|
||
export interface IStackEntity { | ||
name: string | ||
description: string | ||
} | ||
export type IStackCreate = Omit<IStack, 'id'> | ||
|
||
export interface IstackMethods { | ||
createStack: (stack: IStackEntity) => Promise<IStack> | ||
} | ||
export const STACK_STRUCTURE: EditorForm[] = [ | ||
{ | ||
label: 'Name', | ||
key: 'name', | ||
type: 'text', | ||
component: Input, | ||
validator: string().required() | ||
}, | ||
{ | ||
label: 'Description', | ||
key: 'description', | ||
type: 'text', | ||
component: Input, | ||
validator: string().nullable() | ||
} | ||
] |
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
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