File tree Expand file tree Collapse file tree 1 file changed +0
-93
lines changed
apps/dashboard/app/(main)/websites/[id]/_components/tabs Expand file tree Collapse file tree 1 file changed +0
-93
lines changed Original file line number Diff line number Diff line change @@ -1848,96 +1848,3 @@ function ExportTab({
18481848 </ div >
18491849 ) ;
18501850}
1851- (
1852- < p className = "font-medium text-sm" >
1853- Ready to export { websiteData . name || 'your website' } data?
1854- </ p >
1855- ) < p ;
1856- className = Export < 'text-muted-foreground text-xs' ;
1857- {
1858- selectedFormat . toUpperCase ( ) ;
1859- }
1860- {
1861- useCustomRange && dateRange ?. from && dateRange ?. to && (
1862- < span >
1863- { ' ' }
1864- • Date range: { dayjs ( dateRange . from ) . format ( 'YYYY-MM-DD' ) } to{ ' ' }
1865- { dayjs ( dateRange . to ) . format ( 'YYYY-MM-DD' ) }
1866- </ span >
1867- ) ;
1868- }
1869- < / p >
1870- </ div >
1871-
1872- < Button
1873- className = "gap-2"
1874- disabled =
1875- {
1876- isExporting || ( useCustomRange && ! ( dateRange ?. from && dateRange ?. to ) ) ;
1877- }
1878- onClick = { handleExport } ;
1879- size = { isExporting ? (
1880- < >
1881- < div className = "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" />
1882- Exporting...
1883- </ >
1884- ) : (
1885- < >
1886- < DownloadIcon className = "h-4 w-4" />
1887- Export Data
1888- </ >
1889- ) }
1890- <
1891- "lg"
1892- < / B u t t o n >
1893- </div >
1894- < / d i v >
1895- )
1896- }
1897- < p className = "font-medium text-sm" >
1898- Ready to
1899- export { websiteData . name || 'your website' }
1900- data?
1901- </ p >
1902- < p className = "text-muted-foreground text-xs" >
1903- Export format :
1904- {
1905- selectedFormat . toUpperCase ( ) ;
1906- }
1907- {
1908- useCustomRange && dateRange ?. from && dateRange ?. to && (
1909- < span >
1910- { ' ' }
1911- • Date range: { dayjs ( dateRange . from ) . format ( 'YYYY-MM-DD' ) } to{ ' ' }
1912- { dayjs ( dateRange . to ) . format ( 'YYYY-MM-DD' ) }
1913- </ span >
1914- ) ;
1915- }
1916- </p >
1917- < / div >
1918-
1919- < Button
1920- className = "gap-2"
1921- disabled =
1922- {
1923- isExporting || ( useCustomRange && ! ( dateRange ?. from && dateRange ?. to ) ) ;
1924- }
1925- onClick = { handleExport } ;
1926- size = { isExporting ? (
1927- < >
1928- < div className = "h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" />
1929- Exporting...
1930- </ >
1931- ) : (
1932- < >
1933- < DownloadIcon className = "h-4 w-4" />
1934- Export Data
1935- </ >
1936- ) }
1937- <
1938- "lg "
1939- </Button >
1940- </ div >
1941- </ div >
1942- )
1943- }
You can’t perform that action at this time.
0 commit comments