```text
feat: Add type prop to CreateNewAdventure component The code changes include adding a new prop called "type" to the CreateNewAdventure component in order to specify the type of adventure being created. This prop is passed from the parent component and used to set the "type" property of the newAdventure object. This allows for more flexibility in creating adventures with different types.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<script lang="ts">
|
||||
let newAdventure: Adventure;
|
||||
export let type: string;
|
||||
|
||||
newAdventure = {
|
||||
id: -1,
|
||||
type: "mylog",
|
||||
type: type,
|
||||
name: "",
|
||||
location: "",
|
||||
date: "",
|
||||
|
||||
Reference in New Issue
Block a user