Skip to content

Commit

Permalink
feat(front): delete a stack (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasevano authored Sep 8, 2023
1 parent 064e391 commit ae40442
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down
11 changes: 10 additions & 1 deletion front/src/views/organisms/StackFormModal.organism.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import useForm from '../../hooks/useForm'
import { type EditorForm } from '../../forms/editor.structure'
import TextArea from '../atoms/forms/TextArea.atom'
import ModalOrganism from './Modal.organism'
import Button from '../atoms/forms/Button.atom'

const StackFormModalOrganism = ({ stack, stacks, setStacks, toggle }: {
toggle: () => void
Expand Down Expand Up @@ -63,9 +64,17 @@ const StackFormModalOrganism = ({ stack, stacks, setStacks, toggle }: {
onChange={onChange}
/>
</form>
<div className="flex items-center justify-end p-6 border-t border-solid border-slate-200 rounded-b">
<Button
label={buttonText}
onClick={onSubmit}
direction={'right'}
/>

<Button className='btn-ghost ml-4' onClick={toggle} label={'Close'} />
</div>
</div>
</ModalOrganism>

)
}

Expand Down

0 comments on commit ae40442

Please sign in to comment.