mirror of
https://github.com/umami-software/umami.git
synced 2026-02-24 14:35:35 +01:00
funnel checkpoint
This commit is contained in:
parent
ebc8cb488a
commit
b5f84159d2
8 changed files with 21 additions and 12 deletions
|
|
@ -12,10 +12,11 @@ export default function FunnelPage() {
|
|||
const { post } = useApi();
|
||||
const { mutate, error, isLoading } = useMutation(data => post('/reports/funnel', data));
|
||||
const [data, setData] = useState();
|
||||
const [formData, setFormData] = useState();
|
||||
|
||||
function handleOnSearch(data) {
|
||||
// do API CALL to api/reports/funnel to get funnelData
|
||||
// Get DATA
|
||||
setFormData(data);
|
||||
|
||||
mutate(data, {
|
||||
onSuccess: async data => {
|
||||
setData(data);
|
||||
|
|
@ -28,7 +29,6 @@ export default function FunnelPage() {
|
|||
<PageHeader title="Funnel Report"></PageHeader>
|
||||
<FunnelChart data={data} />
|
||||
<FunnelTable data={data} />
|
||||
{/* <ReportForm /> */}
|
||||
<div>
|
||||
<h2>Filters</h2>
|
||||
<FunnelForm onSearch={handleOnSearch} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue