Fakultas Ilmu Komputer UI

Commit 47aba591 authored by Nabilah Adani's avatar Nabilah Adani
Browse files

[CHORES] menambahkan button export pdf untuk data terfilter

parent f3ffbced
Pipeline #63799 failed with stages
in 4 minutes and 49 seconds
......@@ -60,6 +60,8 @@ function Statistic({
}
};
const filterExportsPDF = async (filterType: StatisticType) => {}
const getDropdownValue = (statType: StatisticType) => {
switch (statType) {
case StatisticType.District:
......@@ -208,19 +210,40 @@ function Statistic({
{`${type}: ${ageKey.minAge} s/d ${ageKey.maxAge} tahun`}
</Text>
</Box>
<Gap axis={Gap.Axis.Horizontal} gap={30} />
<Box
width="50%"
axis={Box.Axis.Horizontal}
mainAxis='flex-end'
crossAxis='flex-end'
axis={Box.Axis.Vertical}
>
<Button
isBold={false}
onClick={() => filterExports(type)}
clickable={selectedKeyData[3]?.total_count !== 0}
<Box
width="60%"
height="25%"
mainAxis='center'
crossAxis='center'
>
<Button
isBold={false}
onClick={() => filterExports(type)}
clickable={selectedKeyData[3]?.total_count !== 0}
>
Export CSV
</Button>
</Box>
<Gap axis={Gap.Axis.Vertical} gap={10} />
<Box
width="60%"
height="25%"
mainAxis='center'
crossAxis='center'
>
Export CSV
</Button>
<Button
isBold={false}
onClick={() => filterExportsPDF(type)}
clickable={selectedKeyData[3]?.total_count !== 0}
>
Export PDF
</Button>
</Box>
</Box>
</Box>
</>
......@@ -239,19 +262,40 @@ function Statistic({
<Box width="45%" axis={Box.Axis.Horizontal}>
<Text type={Text.StyleType.Medium}>{`${type}: ${translate(selectedKey)}`}</Text>
</Box>
<Gap axis={Gap.Axis.Horizontal} gap={30} />
<Box
width="50%"
axis={Box.Axis.Horizontal}
mainAxis='flex-end'
crossAxis='flex-end'
axis={Box.Axis.Vertical}
>
<Button
isBold={false}
onClick={() => filterExports(type)}
clickable={selectedKeyData[3]?.total_count !== 0}
<Box
width="60%"
height="25%"
mainAxis='center'
crossAxis='center'
>
<Button
isBold={false}
onClick={() => filterExports(type)}
clickable={selectedKeyData[3]?.total_count !== 0}
>
Export CSV
</Button>
</Box>
<Gap axis={Gap.Axis.Vertical} gap={10} />
<Box
width="60%"
height="25%"
mainAxis='center'
crossAxis='center'
>
Export CSV
</Button>
<Button
isBold={false}
onClick={() => filterExportsPDF(type)}
clickable={selectedKeyData[3]?.total_count !== 0}
>
Export PDF
</Button>
</Box>
</Box>
</Box>
</Box>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment