Skip to content

Commit

Permalink
PORTALS-3308: export new Goals component and use in ELITE portal home…
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
jay-hodgson committed Jan 23, 2025
1 parent aabaddc commit f2f0e62
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/portals/elportal/src/config/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ export const defaultSearchConfiguration = {
}
export const cavaticaConnectAccountURL =
'https://help.eliteportal.org/help/analysis-environments#IntegrationwithAnalysis&ComputeEnvironments-GainingAccess'
export const goalsV2Table = 'syn64618674'
3 changes: 3 additions & 0 deletions apps/portals/elportal/src/pages/HomePageV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
FeaturedResearch,
UpsetPlot,
PortalHomePageHeader,
GoalsV2,
} from 'synapse-react-client'
import ELContributeYourData from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELContributeYourData'
import ELGettingStarted from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELGettingStarted'
Expand All @@ -15,6 +16,7 @@ import {
featuredResearchSql,
dataSql,
upsetPlotSql,
goalsV2Table,
} from '../config/resources'
import { Link, Typography, useTheme } from '@mui/material'
import analyzetheclouds from '../assets/analyzetheclouds.png'
Expand Down Expand Up @@ -140,6 +142,7 @@ export default function HomePage() {
}}
>
<ELGettingStarted />
<GoalsV2 entityId={goalsV2Table} dataLink="/Explore/Data" />
<div className={'home-bg-dark'}>
<SectionLayout
title="Exploring the Data"
Expand Down
4 changes: 4 additions & 0 deletions packages/synapse-react-client/src/components/GoalsV2/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { GoalsV2 } from './GoalsV2'
import type { GoalsV2Props } from './GoalsV2'
export { GoalsV2, GoalsV2Props }
export default GoalsV2
1 change: 1 addition & 0 deletions packages/synapse-react-client/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export * from './Forum'
export * from './FullWidthAlert'
export * from './GenericCard'
export * from './Goals'
export * from './GoalsV2'
export * from './GoogleAnalytics'
export * from './GoogleMap'
export * from './HasAccess'
Expand Down

0 comments on commit f2f0e62

Please sign in to comment.