Commit 5cd3829 1 parent e9129f4 commit 5cd3829 Copy full SHA for 5cd3829
File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
+ Footer as SwissFederalCiFooter ,
2
3
FooterSection ,
3
4
FooterSectionButton ,
4
5
FooterSectionSocialMediaButton ,
5
6
FooterSectionSocialMediaButtonGroup ,
6
7
FooterSectionText ,
7
8
FooterSectionTitle ,
8
- Footer as SwissFederalCiFooter ,
9
9
} from "@interactivethings/swiss-federal-ci/dist/components" ;
10
10
import { t } from "@lingui/macro" ;
11
11
import { Link , SxProps } from "@mui/material" ;
@@ -17,14 +17,20 @@ import { useLocale } from "@/locales/use-locale";
17
17
const mkVersionLink = ( ) => {
18
18
let commitLink = "" ;
19
19
let href = "" ;
20
- if ( BUILD_GITHUB_REPO && BUILD_COMMIT ) {
21
- commitLink = BUILD_COMMIT . substr ( 0 , 7 ) ;
22
- href = `${ BUILD_GITHUB_REPO } /commit/${ BUILD_COMMIT } ` ;
23
- }
20
+
24
21
if ( BUILD_COMMIT ) {
25
22
commitLink = `(${ BUILD_COMMIT . substr ( 0 , 7 ) } )` ;
26
23
}
27
- return { title : `${ BUILD_VERSION } ${ commitLink } ` , href, external : true } ;
24
+
25
+ if ( BUILD_GITHUB_REPO ) {
26
+ href = `${ BUILD_GITHUB_REPO } /commit/${ BUILD_COMMIT } ` ;
27
+ }
28
+
29
+ return {
30
+ title : `${ BUILD_VERSION } ${ commitLink } ` ,
31
+ href,
32
+ external : true ,
33
+ } ;
28
34
} ;
29
35
30
36
export const Footer = ( { sx } : { sx ?: SxProps } ) => {
You can’t perform that action at this time.
0 commit comments