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,
|
||||
skipSave?: boolean
|
||||
}
|
||||
|
||||
const {routerOutlet, skipSave = false} = Astro.props;
|
||||
---
|
||||
<div id="library">
|
||||
<span id="heading"></span>
|
||||
<ul id="post-list"></ul>
|
||||
</div>
|
||||
|
||||
<Serialize id="preferences" data={{routerOutlet, skipSave}} />
|
||||
<Serialize id="preferences" data={{...Astro.props}} />
|
||||
|
||||
<script>
|
||||
import {deserialize} from '@ayco/astro-resume';
|
||||
|
|
Loading…
Reference in a new issue