Skip to content

Commit a366730

Browse files
authored
Merge pull request #51 from lsst/FIREFLY-1427_search_panel_sidebar
FIREFLY-1427: Searches as menu items
2 parents c0dbc29 + 1d61ac8 commit a366730

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/suit/js/RubinLanding.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const RubinBranding = ({}) => (
1515
export function RubinLanding() {
1616
return (
1717
<LandingPage
18-
slots={{ topSection: RubinBranding }}
1918
slotProps={{
19+
topSection: {component: RubinBranding},
2020
bgMonitorHint: {sx: {right: 80}},
2121
bottomSection: {icon: <img src={PORTAL_SYMBOL} alt={'Rubin Portal Symbol'} style={{width: '14rem'}}/>}
2222
}}/>

src/suit/js/SUIT.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import {TapSearchPanel} from 'firefly/ui/tap/TapSearchRootPanel.jsx';
55
import {defaultTheme} from 'firefly/ui/ThemeSetup.js';
66
import React from 'react';
7+
import {set} from 'lodash';
8+
79
import {firefly} from 'firefly/Firefly.js';
810
import {
911
makeDefImageSearchActions,
@@ -15,6 +17,7 @@ import {getFireflyViewerWebApiCommands} from 'firefly/api/webApiCommands/ViewerW
1517
import './suit.css';
1618
import {makeLsstClickToAction, makeLsstTapEntry, LSST_DP02_DC2, LSST_DP03_SSO} from './actions.jsx';
1719
import {RubinLanding} from './RubinLanding.jsx';
20+
import APP_ICON from '../html/images/rubin-favicon-transparent-45px.png';
1821

1922
// import SUIT_ICO from 'html/images/rubin_logo_transparent-70.png';
2023

@@ -30,9 +33,7 @@ const LSST_DP02_DC2_IMAGES= LSST_DP02_DC2+'-images';
3033
*/
3134
let props = {
3235
showUserInfo: true,
33-
// appIcon: getRootURL() +'images/rubin_logo_transparent-40.png',
34-
appIcon: getRootURL() +'images/rubin-favicon-transparent-45px.png',
35-
bannerLeftStyle:{margin: '3px 10px 0 10px'},
36+
appIcon: <img src={APP_ICON}/>,
3637
showViewsSwitch: true,
3738
menu: [
3839
{label: 'DP0.2 Images', action: LSST_DP02_DC2_IMAGES, primary:true, category:RUBIN,
@@ -53,6 +54,7 @@ let props = {
5354
appTitle: 'Rubin Portal',
5455
landingPage: <RubinLanding/>,
5556
fileDropEventAction: 'FileUploadDropDownCmd',
57+
slotProps: set({}, 'banner.slotProps.icon.style', {margin: '3px 10px 0 10px'}),
5658

5759

5860
dropdownPanels: [

0 commit comments

Comments
 (0)