diff --git a/client/public/index.html b/client/public/index.html index c9fb06b..2c4fe49 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -26,6 +26,7 @@ + diff --git a/client/public/resources/images/pt.jpg b/client/public/resources/images/pt.jpg new file mode 100644 index 0000000..8aa0233 Binary files /dev/null and b/client/public/resources/images/pt.jpg differ diff --git a/client/public/resources/images/slack.png b/client/public/resources/images/slack.png new file mode 100644 index 0000000..ac84902 Binary files /dev/null and b/client/public/resources/images/slack.png differ diff --git a/client/src/modules/CreateTeam/components/Form.jsx b/client/src/modules/CreateTeam/components/Form.jsx index 945c2ab..8ca1b17 100644 --- a/client/src/modules/CreateTeam/components/Form.jsx +++ b/client/src/modules/CreateTeam/components/Form.jsx @@ -1,5 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; +import { Dropdown } from 'semantic-ui-react' +import slack from '../../../../public/resources/images/slack.png'; +import pt from '../../../../public/resources/images/pt.jpg' const Form = ({ handleChange, @@ -10,16 +13,40 @@ const Form = ({ submitting }) => { let showSubmitButton = false; + let teamName = 'example'; + if (name.trim() && desc.trim()) { showSubmitButton = true; } + + if (name.trim()) { + teamName = name + } + + const githubOptions = [ + {key: `ah-${teamName}-frontend`, text: `ah-${teamName}-frontend`, value: `ah-${teamName}-frontend`}, + {key: `ah-${teamName}`, text: `ah-${teamName}`, value: `ah-${teamName}`}, + {key: `${teamName}-ah`, text: `${teamName}-ah`, value: `${teamName}-ah`} + ] + + const ptOptions = [ + {key: `ah-${teamName}`, text: `ah-${teamName}`, value: `ah-${teamName}`}, + {key: `${teamName}-ah`, text: `${teamName}-ah`, value: `${teamName}-ah`} + ] + + const slackOptions = [ + {key: `ah-${teamName}`, text: `ah-${teamName}`, value: `ah-${teamName}`}, + {key: `${teamName}-general`, text: `${teamName}-general`, value: `${teamName}-general`}, + {key: `${teamName}-standup`, text: `${teamName}-standup`, value: `${teamName}-standup`} + ] + return (