|
1 | 1 | 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'; |
3 | 4 |
|
4 | 5 | export const Footer = () => { |
5 | 6 | const theme = useTheme(); |
| 7 | + const version = getVersionInfo(); |
6 | 8 |
|
7 | 9 | interface CustomLinkProps { |
8 | 10 | href: string; |
@@ -36,20 +38,22 @@ export const Footer = () => { |
36 | 38 | align='center' |
37 | 39 | justify='center' |
38 | 40 | > |
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'> |
49 | 53 | <CustomLink title='Discord' href='https://chat.fedimint.org/' /> |
50 | 54 | <CustomLink title='Github' href='https://github.com/fedimint' /> |
51 | 55 | </Flex> |
52 | | - </Stack> |
| 56 | + </Flex> |
53 | 57 | </Flex> |
54 | 58 | ); |
55 | 59 | }; |
0 commit comments