refactor: use Astro.props directly for @ayco/astro-resume
This commit is contained in:
parent
2e574e289f
commit
470152ea32
1 changed files with 1 additions and 3 deletions
|
@ -4,15 +4,13 @@ export interface Props {
|
||||||
routerOutlet: string,
|
routerOutlet: string,
|
||||||
skipSave?: boolean
|
skipSave?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const {routerOutlet, skipSave = false} = Astro.props;
|
|
||||||
---
|
---
|
||||||
<div id="library">
|
<div id="library">
|
||||||
<span id="heading"></span>
|
<span id="heading"></span>
|
||||||
<ul id="post-list"></ul>
|
<ul id="post-list"></ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Serialize id="preferences" data={{routerOutlet, skipSave}} />
|
<Serialize id="preferences" data={{...Astro.props}} />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {deserialize} from '@ayco/astro-resume';
|
import {deserialize} from '@ayco/astro-resume';
|
||||||
|
|
Loading…
Reference in a new issue