From 10a0ffe472b8d5b3dc8f56ac5f59e3efd7311446 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 31 May 2018 12:44:32 -0700 Subject: [PATCH] Team details settings page --- app/components/Input/Input.js | 8 +- app/index.js | 6 ++ app/menus/ShareMenu.js | 2 +- app/scenes/Settings/Details.js | 145 +++++++++++++++++++++++++++++++++ app/scenes/Settings/Profile.js | 16 ++-- app/stores/AuthStore.js | 16 ++++ package.json | 2 +- server/api/team.js | 24 +++++- server/api/user.js | 7 +- server/policies/collection.js | 3 +- server/policies/index.js | 1 + server/policies/team.js | 14 ++++ 12 files changed, 226 insertions(+), 18 deletions(-) create mode 100644 app/scenes/Settings/Details.js create mode 100644 server/policies/team.js diff --git a/app/components/Input/Input.js b/app/components/Input/Input.js index 05e6cf8fb..0e2ed8688 100644 --- a/app/components/Input/Input.js +++ b/app/components/Input/Input.js @@ -30,7 +30,9 @@ const RealInput = styled.input` } `; -const Wrapper = styled.div``; +const Wrapper = styled.div` + max-width: ${props => (props.short ? '350px' : '100%')}; +`; export const Outline = styled(Flex)` display: flex; @@ -58,18 +60,20 @@ export type Props = { value?: string, label?: string, className?: string, + short?: boolean, }; export default function Input({ type = 'text', label, className, + short, ...rest }: Props) { const InputComponent = type === 'textarea' ? RealTextarea : RealInput; return ( - +