aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-07-19 01:32:42 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-07-19 04:59:50 +0800
commite0fbc78925df09631045439b4f979246bc857c86 (patch)
tree8658b452b9727f5b34ee4a878d7d2307cdc5f39b /packages/website/ts/components/ui
parentf3e43d7d946ad7dd30736b2407debf361f2e5f75 (diff)
downloaddexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.tar
dexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.tar.gz
dexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.tar.bz2
dexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.tar.lz
dexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.tar.xz
dexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.tar.zst
dexon-sol-tools-e0fbc78925df09631045439b4f979246bc857c86.zip
Update open positions section
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r--packages/website/ts/components/ui/container.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/website/ts/components/ui/container.tsx b/packages/website/ts/components/ui/container.tsx
index 427cc6cc7..502069dee 100644
--- a/packages/website/ts/components/ui/container.tsx
+++ b/packages/website/ts/components/ui/container.tsx
@@ -9,6 +9,7 @@ export interface ContainerProps {
marginBottom?: StringOrNum;
marginRight?: StringOrNum;
marginLeft?: StringOrNum;
+ padding?: StringOrNum;
paddingTop?: StringOrNum;
paddingBottom?: StringOrNum;
paddingRight?: StringOrNum;
@@ -31,13 +32,15 @@ export interface ContainerProps {
bottom?: string;
zIndex?: number;
Tag?: ContainerTag;
+ id?: string;
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
}
export const Container: React.StatelessComponent<ContainerProps> = props => {
- const { children, className, Tag, isHidden, ...style } = props;
+ const { children, className, Tag, isHidden, id, onClick, ...style } = props;
const visibility = isHidden ? 'hidden' : undefined;
return (
- <Tag style={{ ...style, visibility }} className={className}>
+ <Tag id={id} style={{ ...style, visibility }} className={className} onClick={onClick}>
{children}
</Tag>
);