|
|
@ -63,15 +63,16 @@ class BackgroundSelect extends React.PureComponent {
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div className="picker-tabs">
|
|
|
|
<div className="picker-tabs">
|
|
|
|
{['color', 'image'].map(tab => (
|
|
|
|
{['color', 'image'].map(tab => (
|
|
|
|
<div
|
|
|
|
<Button
|
|
|
|
role="button"
|
|
|
|
|
|
|
|
tabIndex={0}
|
|
|
|
|
|
|
|
key={tab}
|
|
|
|
key={tab}
|
|
|
|
className={`picker-tab capitalize ${mode === tab ? 'active' : ''}`}
|
|
|
|
padding="8px 0"
|
|
|
|
|
|
|
|
center
|
|
|
|
|
|
|
|
className="capitalize"
|
|
|
|
onClick={this.selectTab.bind(null, tab)}
|
|
|
|
onClick={this.selectTab.bind(null, tab)}
|
|
|
|
|
|
|
|
background={mode === tab ? COLORS.BLACK : COLORS.DARK_GRAY}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{tab}
|
|
|
|
{tab}
|
|
|
|
</div>
|
|
|
|
</Button>
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="picker-tabs-contents">
|
|
|
|
<div className="picker-tabs-contents">
|
|
|
@ -134,23 +135,13 @@ class BackgroundSelect extends React.PureComponent {
|
|
|
|
border-bottom: 2px solid ${COLORS.SECONDARY};
|
|
|
|
border-bottom: 2px solid ${COLORS.SECONDARY};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.picker-tab {
|
|
|
|
.picker-tabs :global(button) {
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
background: ${COLORS.DARK_GRAY};
|
|
|
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
|
|
|
border-right: 1px solid ${COLORS.SECONDARY};
|
|
|
|
border-right: 1px solid ${COLORS.SECONDARY};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.picker-tab:last-child {
|
|
|
|
.picker-tabs :global(button:last-child) {
|
|
|
|
border-right: none;
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.picker-tab.active {
|
|
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`}
|
|
|
|
`}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|