File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/plugins/splash-screen/components/SplashScreen Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import classNames from 'classnames';
55// eslint-disable-next-line import/no-unresolved
66import logo from '../../assets/logo.svg?raw' ;
77
8- const SplashScreen = ( { isOpen = true , getComponent } ) => {
8+ const SplashScreen = ( { isOpen = true , version , getComponent } ) => {
99 const { PACKAGE_VERSION } = buildInfo ; // eslint-disable-line no-undef
1010 const SplashScreenSpinner = getComponent ( 'SplashScreenSpinner' ) ;
1111 const [ isHidden , setHidden ] = useState ( ! isOpen ) ;
@@ -24,7 +24,7 @@ const SplashScreen = ({ isOpen = true, getComponent }) => {
2424 >
2525 < figure className = "swagger-editor__splash-screen-figure" >
2626 < img width = "100%" src = { logo } alt = "Swagger Editor" />
27- < figcaption > { PACKAGE_VERSION } </ figcaption >
27+ < figcaption > { version ?? PACKAGE_VERSION } </ figcaption >
2828 < SplashScreenSpinner />
2929 </ figure >
3030 </ div >
@@ -33,6 +33,7 @@ const SplashScreen = ({ isOpen = true, getComponent }) => {
3333
3434SplashScreen . propTypes = {
3535 isOpen : PropTypes . bool ,
36+ version : PropTypes . string ,
3637 getComponent : PropTypes . func . isRequired ,
3738} ;
3839
You can’t perform that action at this time.
0 commit comments