fix: orders date format
This commit is contained in:
		
							parent
							
								
									9111724519
								
							
						
					
					
						commit
						24779e2592
					
				@ -1,6 +1,7 @@
 | 
				
			|||||||
import React from 'react';
 | 
					import React from 'react';
 | 
				
			||||||
import { Box, Button, Text } from '@chakra-ui/react';
 | 
					import { Box, Button, Text } from '@chakra-ui/react';
 | 
				
			||||||
import { ArrowBackIcon, ArrowForwardIcon } from '@chakra-ui/icons';
 | 
					import { ArrowBackIcon, ArrowForwardIcon } from '@chakra-ui/icons';
 | 
				
			||||||
 | 
					import dayjs from 'dayjs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface DateNavigatorProps {
 | 
					interface DateNavigatorProps {
 | 
				
			||||||
  currentDate: Date;
 | 
					  currentDate: Date;
 | 
				
			||||||
@ -19,7 +20,7 @@ const DateNavigator = ({
 | 
				
			|||||||
        <ArrowBackIcon />
 | 
					        <ArrowBackIcon />
 | 
				
			||||||
      </Button>
 | 
					      </Button>
 | 
				
			||||||
      <Text mx='4' fontSize='lg' fontWeight='bold'>
 | 
					      <Text mx='4' fontSize='lg' fontWeight='bold'>
 | 
				
			||||||
        {currentDate.toLocaleDateString()}
 | 
					        {dayjs(currentDate).format('DD.MM.YYYY')}
 | 
				
			||||||
      </Text>
 | 
					      </Text>
 | 
				
			||||||
      <Button onClick={onNextDate}>
 | 
					      <Button onClick={onNextDate}>
 | 
				
			||||||
        <ArrowForwardIcon />
 | 
					        <ArrowForwardIcon />
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user