Skip to content

Commit

Permalink
docs: fix disabling animations causing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Oct 12, 2024
1 parent 117d76a commit bc1c259
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,16 @@ const motions = {

// disable all documentation motions
Object.entries(motions).forEach(([_, val]) => {
Object.keys(val).forEach((x) => {
// @ts-expect-error looping through keys so should be fine
val[x] = {}
Object.keys(val).forEach((k) => {
// nested motion config
if (['h1', 'common'].includes(k)) {
Object.keys(val).forEach((kNested) => {
val[k][kNested] = {}
})
}
else {
val[k] = {}
}
})
})

Expand Down

0 comments on commit bc1c259

Please sign in to comment.