Skip to content

Commit cf02442

Browse files
authored
Merge pull request fedibtc#574 from kleyberthsantos/feature-add-git-hash-footer
2 parents a67630b + c9f9ac8 commit cf02442

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

apps/router/src/components/Footer.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React from 'react';
2-
import { Flex, Stack, useTheme, Link } from '@chakra-ui/react';
2+
import { Flex, useTheme, Link, Box } from '@chakra-ui/react';
3+
import { getVersionInfo } from '@fedimint/router/src/constants/Version';
34

45
export const Footer = () => {
56
const theme = useTheme();
7+
const version = getVersionInfo();
68

79
interface CustomLinkProps {
810
href: string;
@@ -36,20 +38,22 @@ export const Footer = () => {
3638
align='center'
3739
justify='center'
3840
>
39-
<Stack
40-
direction={{ base: 'column-reverse', sm: 'row' }}
41-
spacing={4}
42-
order={{ base: 1, sm: 2 }}
43-
>
44-
<CustomLink
45-
title='© The Fedimint Developers'
46-
href='https://fedimint.org'
47-
/>
48-
<Flex direction='row' gap={4} justifyContent='center'>
41+
<Flex direction='column' alignItems='center'>
42+
<Flex direction='row' alignItems='center'>
43+
<CustomLink
44+
title='© The Fedimint Developers'
45+
href='https://fedimint.org'
46+
/>
47+
<Box marginLeft='2'>
48+
<CustomLink title={version.display} href={version.url} />
49+
</Box>
50+
</Flex>
51+
52+
<Flex direction='row' gap={4} justifyContent='center' marginTop='2'>
4953
<CustomLink title='Discord' href='https://chat.fedimint.org/' />
5054
<CustomLink title='Github' href='https://github.com/fedimint' />
5155
</Flex>
52-
</Stack>
56+
</Flex>
5357
</Flex>
5458
);
5559
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export const RELEASE_TAG = 'v0.5.0-alpha';
2+
3+
export const getVersionInfo = () => {
4+
return {
5+
display: RELEASE_TAG,
6+
url: `https://github.com/fedimint/ui/releases/tag/${RELEASE_TAG}`,
7+
};
8+
};

0 commit comments

Comments
 (0)