-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from knowankit/feat/add-card
Adds card to columns
- Loading branch information
Showing
2 changed files
with
92 additions
and
44 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/components/board/columns/buttons/add-column-button.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,30 @@ | ||
import React, { FC } from 'react'; | ||
import { Box, Button } from '@chakra-ui/react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
type Props = { | ||
addColumn: () => void; | ||
}; | ||
|
||
const AddColumnButton: FC<Props> = ({ addColumn }) => { | ||
return ( | ||
<Box | ||
rounded="lg" | ||
height="auto" | ||
width="300px" | ||
display="flex" | ||
flexDirection="column" | ||
mt="10px" | ||
mx="10px"> | ||
<Button size="xs" my="10px" mx="5px" colorScheme="blue" color="white" onClick={addColumn}> | ||
Add a Column | ||
</Button> | ||
</Box> | ||
); | ||
}; | ||
|
||
AddColumnButton.propTypes = { | ||
addColumn: PropTypes.func | ||
}; | ||
|
||
export default AddColumnButton; |
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
2cd4211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: