Skip to content

Commit

Permalink
PORTALS-3241 integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Sep 13, 2024
1 parent a8c48bd commit 0a31086
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
16 changes: 16 additions & 0 deletions apps/portals/nf/src/config/routesConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,22 @@ const routes: GenericRoute[] = [
{
path: '',
synapseConfigArray: [
{
name: 'SharePageLinkButton',
props: {
buttonProps: {
color: 'white',
variant: 'text',
sx: {
position: 'absolute',
top: '50px',
right: '20px',
zIndex: 100,
},
},
},
containerClassName: 'container-full-width',
},
{
name: 'CardContainerLogic',
isOutsideContainer: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ $svg-icon-height: 30px;

.DetailsPage {
display: flex;

// keeps h2 in markdown and in this component the same
.h2,
h2 {
Expand Down
6 changes: 6 additions & 0 deletions apps/synapse-portal-framework/src/types/portal-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
UserCardListRotateProps,
UserCardProps,
DynamicFormProps,
SharePageLinkButtonProps,
} from 'synapse-react-client'
import { RouteControlWrapperProps } from '../components/RouteControlWrapper'
import { HomePageCardContainerProps } from '../components/csbc-home-page/HomePageCardContainer'
Expand Down Expand Up @@ -177,6 +178,10 @@ type GenieHomePageHeader = {
name: 'GenieHomePageHeader'
props: undefined
}
type SharePageLinkButton = {
name: 'SharePageLinkButton'
props: SharePageLinkButtonProps
}
type SynapseComponentCollapse = {
name: 'SynapseComponentCollapse'
props: SynapseComponentCollapseProps
Expand Down Expand Up @@ -388,6 +393,7 @@ export type SynapseConfig = (
| TimelinePlot
| DatasetJsonLdScript
| DynamicForm
| SharePageLinkButton
) &
Metadata

Expand Down
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 @@ -75,6 +75,7 @@ export * from './AccessRequirementRelatedProjectsList'
export * from './HelpPopover'
export * from './MuiContainer'
export * from './DatasetJsonLdScript'
export * from './SharePageLinkButton'

// TODO: Find a better way to expose Icon components
export { Project as ProjectIcon } from '../assets/themed_icons/Project'

0 comments on commit 0a31086

Please sign in to comment.