File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
kafka-ui-react-app/src/components/Version Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,15 @@ import * as S from './Version.styled';
88
99const Version : React . FC = ( ) => {
1010 const { data : latestVersionInfo = { } } = useLatestVersion ( ) ;
11- const { buildTime, commitId, isLatestRelease } = latestVersionInfo . build ;
11+ const { buildTime, commitId, isLatestRelease, version } =
12+ latestVersionInfo . build ;
1213 const { versionTag } = latestVersionInfo ?. latestRelease || '' ;
1314
15+ const currentVersion =
16+ isLatestRelease && version ?. match ( versionTag )
17+ ? versionTag
18+ : formatTimestamp ( buildTime ) ;
19+
1420 return (
1521 < S . Wrapper >
1622 { ! isLatestRelease && (
@@ -32,7 +38,7 @@ const Version: React.FC = () => {
3238 </ S . CurrentCommitLink >
3339 </ div >
3440 ) }
35- < S . CurrentVersion > { formatTimestamp ( buildTime ) } </ S . CurrentVersion >
41+ < S . CurrentVersion > { currentVersion } </ S . CurrentVersion >
3642 </ S . Wrapper >
3743 ) ;
3844} ;
You can’t perform that action at this time.
0 commit comments