Skip to content

Commit 65ad8b4

Browse files
authored
Make TinyURL usage opt-in and reduce unnecessary API calls (#72)
1 parent 8844d3d commit 65ad8b4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/components/ui/Share/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Share = observer(() => {
2929
const uiStore = useContext(UiStoreContext);
3030
const visualizationStore = useContext(VisualizationStoreContext);
3131
const [isOpen, setIsOpen] = useState(false);
32-
const [useShortLink, setUseShortLink] = useState(true);
32+
const [useShortLink, setUseShortLink] = useState(false);
3333
const [useCustomSettings, setUseCustomSettings] = useState(false);
3434
const [link, setLink] = useState('');
3535
const [embedCode, setEmbedCode] = useState('');

src/pages/Dimensions/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ const Dimensions = observer(({ queryString = {}, fullscreenHandle }) => {
120120
<>
121121
<Open />
122122
<Save />
123-
<Share />
123+
{!IS_REACT_COMPONENT && configStore.uiConfig.share_icon && <Share />}
124124
<Screenshot />
125125
</>
126126
)}
127127
<DarkLightTheme />
128-
{!queryString.looker_ui && (
129-
<Fullscreen enter={fullscreenHandle.enter} exit={fullscreenHandle.exit} active={fullscreenHandle.active} />
130-
)}
128+
{!queryString.looker_ui && (
129+
<Fullscreen enter={fullscreenHandle.enter} exit={fullscreenHandle.exit} active={fullscreenHandle.active} />
130+
)}
131131
<Info />
132132
</div>
133133
<URLPanel />

src/pages/VOSviewer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const VOSviewer = observer(({ queryString = {}, fullscreenHandle }) => {
108108
<div className={`${s.actionIcons(configStore.urlPreviewPanelWidth)} ${configStore.urlPreviewPanel ? s.previewIsOpen : ''}`}>
109109
<Open />
110110
<Save />
111-
<Share />
111+
{!IS_REACT_COMPONENT && configStore.uiConfig.share_icon && <Share />}
112112
<Screenshot />
113113
<DarkLightTheme />
114114
<Info />

src/pages/ZetaAlpha/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const ZetaAlpha = observer(({ queryString = {}, fullscreenHandle }) => {
118118
<div className={`${s.actionIcons(configStore.urlPreviewPanelWidth)} ${configStore.urlPreviewPanel ? s.previewIsOpen : ''}`}>
119119
<Open />
120120
<Save />
121-
<Share />
121+
{!IS_REACT_COMPONENT && configStore.uiConfig.share_icon && <Share />}
122122
<Screenshot />
123123
<DarkLightTheme />
124124
<Fullscreen enter={fullscreenHandle.enter} exit={fullscreenHandle.exit} active={fullscreenHandle.active} />

0 commit comments

Comments
 (0)