|
1 | | -import { Box, Button, Modal, Text, px } from '@mantine/core'; |
| 1 | +import { Box, Button, Modal, Stack, Text, Tooltip, px } from '@mantine/core'; |
2 | 2 | import { FC, useEffect, useMemo } from 'react'; |
3 | 3 | import { useAbout } from '@/hooks/useGetAbout'; |
4 | | -import { IconAlertCircle } from '@tabler/icons-react'; |
| 4 | +import { IconAlertCircle, IconInfoCircle } from '@tabler/icons-react'; |
5 | 5 | import { useHeaderContext } from '@/layouts/MainLayout/Context'; |
6 | 6 | import styles from './styles/InfoModal.module.css' |
7 | 7 |
|
@@ -106,13 +106,20 @@ const InfoModal: FC<InfoModalProps> = (props) => { |
106 | 106 | <Text className={aboutTextKey}>Mode</Text> |
107 | 107 | <Text className={aboutTextValue}>{getAboutData?.data.mode}</Text> |
108 | 108 | </Box> |
109 | | - <Box className={aboutTextInnerBox}> |
110 | | - <Text className={aboutTextKey}>Staging</Text> |
111 | | - <Text className={aboutTextValue}>{getAboutData?.data.staging}</Text> |
112 | | - </Box> |
| 109 | + {getAboutData?.data.staging && ( |
| 110 | + <Box className={aboutTextInnerBox}> |
| 111 | + <Text className={aboutTextKey}>Staging</Text>`` |
| 112 | + <Text className={aboutTextValue}>{getAboutData?.data.staging}</Text> |
| 113 | + </Box> |
| 114 | + )} |
113 | 115 | <Box className={aboutTextInnerBox}> |
114 | 116 | <Text className={aboutTextKey}>Store</Text> |
115 | | - <Text className={aboutTextValue}>{getAboutData?.data?.store?.type}</Text> |
| 117 | + <Stack style={{ flexDirection: 'row', alignItems: 'center' }} gap={4}> |
| 118 | + <Text className={aboutTextValue}>{getAboutData?.data?.store?.type}</Text> |
| 119 | + <Tooltip label={getAboutData?.data?.store?.path}> |
| 120 | + <IconInfoCircle style={{ cursor: 'pointer' }} color="gray" stroke={1.5} /> |
| 121 | + </Tooltip> |
| 122 | + </Stack> |
116 | 123 | </Box> |
117 | 124 | <Box className={aboutTextInnerBox}> |
118 | 125 | <Text className={aboutTextKey}>Cache</Text> |
|
0 commit comments