@@ -4,8 +4,10 @@ import { SvgLogoNmrium } from 'cheminfo-font';
44import { Toolbar , useOnOff } from 'react-science/ui' ;
55
66import versionInfo from '../../../versionInfo.js' ;
7+ import { useCore } from '../../context/CoreContext.js' ;
78import Logo from '../../elements/Logo.js' ;
89import { StyledDialogBody } from '../../elements/StyledDialogBody.js' ;
10+ import { renderCoreSlot } from '../../utility/renderCoreSlot.js' ;
911
1012import AboutUsZakodium from './AboutUsZakodium.js' ;
1113
@@ -69,8 +71,60 @@ const Separator = styled.span`
6971 width: 15px;
7072` ;
7173
74+ const modalContentFallback = (
75+ < >
76+ < InfoBlock >
77+ < Logo width = { 160 } height = { 50 } />
78+ Version < VersionInfo />
79+ < Separator />
80+ < a
81+ href = "https://github.com/cheminfo/nmrium"
82+ target = "_blank"
83+ rel = "noreferrer"
84+ >
85+ GitHub ( https://github.com/cheminfo/nmrium )
86+ </ a >
87+ </ InfoBlock >
88+ < InfoBlock >
89+ < Separator />
90+ </ InfoBlock >
91+ < span className = "content" >
92+ This project is developed by Zakodium Sàrl (Switzerland), the University
93+ of Cologne (Germany), Johannes Gutenberg University Mainz (Germany) and
94+ Universidad del Valle (Colombia).
95+ </ span >
96+ < InfoBlock >
97+ < Separator />
98+ < span className = "title" > Funding is provided by</ span >
99+ < Separator />
100+ </ InfoBlock >
101+ < div className = "content" >
102+ < ul >
103+ < li >
104+ IDNMR grant, which part of the Scientific Library Services and
105+ Information Systems (LIS) initiative of the DFG.
106+ </ li >
107+ < li >
108+ < AboutUsZakodium />
109+ </ li >
110+ < li > Universidad del Valle (Cali, Colombia).</ li >
111+ < li >
112+ This project has received funding from the European Union’s Horizon
113+ 2020 research and innovation programme under grant agreement No
114+ 957189. The project is part of BATTERY 2030+, the large-scale European
115+ research initiative for inventing the sustainable batteries of the
116+ future.
117+ </ li >
118+ </ ul >
119+ </ div >
120+ < Separator />
121+ </ >
122+ ) ;
123+
72124function AboutUsModal ( ) {
73125 const [ isOpenDialog , openDialog , closeDialog ] = useOnOff ( false ) ;
126+ const core = useCore ( ) ;
127+
74128 return (
75129 < >
76130 < Toolbar . Item
@@ -91,47 +145,11 @@ function AboutUsModal() {
91145 >
92146 < CustomDialogBody >
93147 < Container >
94- < InfoBlock >
95- < Logo width = { 160 } height = { 50 } />
96- Version < VersionInfo />
97- < Separator />
98- < a href = "https://git.nmrium.org" target = "_blank" rel = "noreferrer" >
99- GitHub ( https://git.nmrium.org )
100- </ a >
101- </ InfoBlock >
102- < InfoBlock >
103- < Separator />
104- </ InfoBlock >
105- < span className = "content" >
106- This project is developed by Zakodium Sàrl (Switzerland), the
107- University of Cologne (Germany), Johannes Gutenberg University
108- Mainz (Germany) and Universidad del Valle (Colombia).
109- </ span >
110- < InfoBlock >
111- < Separator />
112- < span className = "title" > Funding is provided by</ span >
113- < Separator />
114- </ InfoBlock >
115- < div className = "content" >
116- < ul >
117- < li >
118- IDNMR grant, which part of the Scientific Library Services and
119- Information Systems (LIS) initiative of the DFG.
120- </ li >
121- < li >
122- < AboutUsZakodium />
123- </ li >
124- < li > Universidad del Valle (Cali, Colombia).</ li >
125- < li >
126- This project has received funding from the European Union’s
127- Horizon 2020 research and innovation programme under grant
128- agreement No 957189. The project is part of BATTERY 2030+, the
129- large-scale European research initiative for inventing the
130- sustainable batteries of the future.
131- </ li >
132- </ ul >
133- </ div >
134- < Separator />
148+ { renderCoreSlot (
149+ core ,
150+ 'topbar.about_us.modal' ,
151+ modalContentFallback ,
152+ ) }
135153 </ Container >
136154 </ CustomDialogBody >
137155 </ Dialog >
0 commit comments