fix: change journey depth default to 4, max to 5
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
|||||||
useJourneyEntryPoints,
|
useJourneyEntryPoints,
|
||||||
} from '@/lib/swr/dashboard'
|
} from '@/lib/swr/dashboard'
|
||||||
|
|
||||||
const DEFAULT_DEPTH = 10
|
const DEFAULT_DEPTH = 4
|
||||||
|
|
||||||
function getThisWeekRange(): { start: string; end: string } {
|
function getThisWeekRange(): { start: string; end: string } {
|
||||||
const today = new Date()
|
const today = new Date()
|
||||||
@@ -148,12 +148,12 @@ export default function JourneysPage() {
|
|||||||
<span className="text-brand-orange font-bold">
|
<span className="text-brand-orange font-bold">
|
||||||
{depth} steps deep
|
{depth} steps deep
|
||||||
</span>
|
</span>
|
||||||
<span>10 steps</span>
|
<span>5 steps</span>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
type="range"
|
type="range"
|
||||||
min={2}
|
min={2}
|
||||||
max={10}
|
max={5}
|
||||||
step={1}
|
step={1}
|
||||||
value={depth}
|
value={depth}
|
||||||
onChange={(e) => setDepth(parseInt(e.target.value))}
|
onChange={(e) => setDepth(parseInt(e.target.value))}
|
||||||
|
|||||||
Reference in New Issue
Block a user