Skip to content

Commit

Permalink
fix: correct scripts using
Browse files Browse the repository at this point in the history
  • Loading branch information
phgrey committed Jul 26, 2024
1 parent 6f152a8 commit 548e87a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 73 deletions.
12 changes: 9 additions & 3 deletions assets/js/dashboard/stats/live_view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import React, { useEffect, useState } from 'react';

import * as storage from '../../util/storage'
import ImportedQueryUnsupportedWarning from '../imported-query-unsupported-warning';
import SpecialPropBreakdown from './values'

import Properties from '../behaviours/props';

const labelFor = {
'phx-event': 'LiveView Events',
Expand Down Expand Up @@ -56,6 +55,13 @@ export default function LiveView(props) {
)
}

function addGoal(query, goal) {
return {
...query,
filters: [['is', 'goal', [goal]]]
}
}

return (
<div class="w-full p-4 bg-white dark:bg-gray-825 rounded shadow-xl mt-6">

Check failure on line 66 in assets/js/dashboard/stats/live_view/index.js

View workflow job for this annotation

GitHub Actions / Build and test

Unknown property 'class' found, use 'className' instead
{/* Header Container */}
Expand All @@ -71,7 +77,7 @@ export default function LiveView(props) {
</div>
</div>
{/* Main Contents */}
<SpecialPropBreakdown site={site} query={props.query} prop={mode} afterFetchData={afterFetchData} />
<Properties site={site} query={addGoal(query, mode)} afterFetchData={afterFetchData} />
</div>
)
}
70 changes: 0 additions & 70 deletions assets/js/dashboard/stats/live_view/values.js

This file was deleted.

0 comments on commit 548e87a

Please sign in to comment.