diff --git a/src/common-elements/buttons.ts b/src/common-elements/buttons.ts new file mode 100644 index 00000000..2e94dff9 --- /dev/null +++ b/src/common-elements/buttons.ts @@ -0,0 +1,14 @@ +import styled, { StyledComponentClass, withProps } from '../styled-components'; + + +export const Button = styled.button` + background: #248fb2; + border-radius: 0px; + border: none; + color: white; + font-size: 0.929em; +`; + +export const SendButton = Button.extend` + background: #B0045E; +`; \ No newline at end of file diff --git a/src/common-elements/panels.ts b/src/common-elements/panels.ts index 91ac574e..bd1c6084 100644 --- a/src/common-elements/panels.ts +++ b/src/common-elements/panels.ts @@ -4,7 +4,7 @@ export const MiddlePanel = styled.div` width: calc(100% - ${props => props.theme.rightPanel.width}); padding: ${props => props.theme.spacingUnit * 2}px; - ${media.lessThan('medium')` + ${media.lessThan('medium') ` width: 100%; `}; `; @@ -15,7 +15,7 @@ export const RightPanel = styled.div` background-color: ${props => props.theme.rightPanel.backgroundColor}; padding: ${props => props.theme.spacingUnit * 2}px; - ${media.lessThan('medium')` + ${media.lessThan('medium') ` width: 100%; `}; `; @@ -25,7 +25,7 @@ export const DarkRightPanel = RightPanel.extend` `; export const EmptyDarkRightPanel = DarkRightPanel.extend` - ${media.lessThan('medium')` + ${media.lessThan('medium') ` padding: 0 `}; `; @@ -34,7 +34,13 @@ export const Row = styled.div` display: flex; width: 100%; - ${media.lessThan('medium')` + ${media.lessThan('medium') ` flex-direction: column; `}; `; + +export const FlexLayout = styled.div` + align-items: flex-end; + display: flex; + width: 100%; +`; diff --git a/src/components/Console/ConsoleEditor.tsx b/src/components/Console/ConsoleEditor.tsx index 598af352..8492cd40 100644 --- a/src/components/Console/ConsoleEditor.tsx +++ b/src/components/Console/ConsoleEditor.tsx @@ -33,7 +33,7 @@ export class ConsoleEditor extends React.Component { for (let mediaType of mediaTypes) { if (mediaType.name.indexOf('json') > -1) { if (mediaType.examples) { - sample = mediaType.examples && mediaType.examples.default; + sample = mediaType.examples && mediaType.examples.default && mediaType.examples.default.value; } break; } @@ -51,12 +51,11 @@ export class ConsoleEditor extends React.Component { */ return (
-

ConsoleEditor

{ {samples.map(sample => ( ))} + + Send Request +
); }