-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AJ-1766] Extract application configuration section into component (#…
- Loading branch information
Showing
2 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/analysis/modals/ComputeModal/AzureComputeModal/AzureApplicationConfigurationSection.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Icon, Link } from '@terra-ui-packages/components'; | ||
import { ReactNode } from 'react'; | ||
import { div, h, label, p } from 'react-hyperscript-helpers'; | ||
import { computeStyles } from 'src/analysis/modals/modalStyles'; | ||
import { InfoBox } from 'src/components/InfoBox'; | ||
import * as Utils from 'src/libs/utils'; | ||
|
||
export const AzureApplicationConfigurationSection = (): ReactNode => { | ||
return div({ style: computeStyles.whiteBoxContainer }, [ | ||
div({ style: { marginBottom: '1rem' } }, [ | ||
label({ style: computeStyles.label }, ['Application configuration']), | ||
h(InfoBox, { style: { marginLeft: '0.5rem' } }, ['Currently, the Azure VM is pre-configured.']), | ||
]), | ||
p(['Azure Data Science Virtual Machine']), | ||
div([ | ||
h( | ||
Link, | ||
{ | ||
href: 'https://azure.microsoft.com/en-us/services/virtual-machines/data-science-virtual-machines/#product-overview', | ||
...Utils.newTabLinkProps, | ||
}, | ||
[ | ||
'Learn more about Azure Data Science VMs.', | ||
h(Icon, { icon: 'pop-out', size: 12, style: { marginLeft: '0.25rem' } }), | ||
] | ||
), | ||
]), | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters