fix(results): 🐛 Export all for free users
This commit is contained in:
@ -38,6 +38,7 @@ export const UnlockProPlanInfo = ({
|
|||||||
bgColor={'blue.50'}
|
bgColor={'blue.50'}
|
||||||
rounded="md"
|
rounded="md"
|
||||||
justifyContent="space-between"
|
justifyContent="space-between"
|
||||||
|
flexShrink={0}
|
||||||
>
|
>
|
||||||
<HStack>
|
<HStack>
|
||||||
<AlertIcon />
|
<AlertIcon />
|
||||||
|
@ -98,7 +98,8 @@ export const SubmissionsContent = ({
|
|||||||
|
|
||||||
const handleExportSelection = async () => {
|
const handleExportSelection = async () => {
|
||||||
setIsExportLoading(true)
|
setIsExportLoading(true)
|
||||||
const isSelectAll = totalSelected === totalResults
|
const isSelectAll =
|
||||||
|
totalSelected === totalResults - (totalHiddenResults ?? 0)
|
||||||
const dataToUnparse = isSelectAll
|
const dataToUnparse = isSelectAll
|
||||||
? await getAllTableData()
|
? await getAllTableData()
|
||||||
: tableData.filter((_, idx) => selectedIndices.includes(idx))
|
: tableData.filter((_, idx) => selectedIndices.includes(idx))
|
||||||
@ -145,7 +146,7 @@ export const SubmissionsContent = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack maxW="1200px" w="full" pb="28" px={['4', '0']}>
|
<Stack maxW="1200px" w="full" pb="28" px={['4', '0']} spacing="4">
|
||||||
{totalHiddenResults && (
|
{totalHiddenResults && (
|
||||||
<UnlockProPlanInfo
|
<UnlockProPlanInfo
|
||||||
buttonLabel={`Unlock ${totalHiddenResults} results`}
|
buttonLabel={`Unlock ${totalHiddenResults} results`}
|
||||||
|
Reference in New Issue
Block a user