Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Enhancement] Add "Share" wording and remove tooltip text on Save/Export button (#183)
Matheus Montedd286de6530b
diff --git a/src/components/side-panel/panel-header.js b/src/components/side-panel/panel-header.jsindex ef7f1d8f8..d259ceaa7 100644--- a/src/components/side-panel/panel-header.js+++ b/src/components/side-panel/panel-header.js@@ -17,7 +17,6 @@// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN// THE SOFTWARE.-import React, {Component} from 'react';import styled from 'styled-components';import PropTypes from 'prop-types';@@ -57,10 +56,11 @@ const StyledPanelAction = styled.div.attrs({props.active ? props.theme.textColorHl : props.theme.subtextColor};display: flex;height: 26px;- justify-content: center;+ justify-content: space-between;margin-left: 4px;- width: 26px;-+ width: 70px;+ padding: 5px;+ font-weight: bold;a {height: 20px;}@@ -123,17 +123,18 @@ const StyledPanelDropdown = styled.div`export const PanelAction = ({item, onClick}) => (<StyledPanelAction className="side-panel__panel-header__action"data-tip data-for={`${item.id}-action`} onClick={onClick}>+ {item.label ? <p>{item.label}</p> : null}<a target={item.blank ? '_blank' : ''} href={item.href}><item.iconComponent height="20px" /></a>- <Tooltip+ {item.tooltip ? (<Tooltipid={`${item.id}-action`}place="bottom"delayShow={500}effect="solid"><span>{item.tooltip}</span>- </Tooltip>+ </Tooltip>) : null }</StyledPanelAction>);@@ -199,8 +200,8 @@ const defaultActionItems = [{id: 'save',iconComponent: Save,- tooltip: 'Save / Export',onClick: () => {},+ label: 'Share',dropdownComponent: SaveExportDropdown}];