create conversationPage
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8de6e9d771
commit
2336262c57
7 changed files with 92 additions and 76 deletions
|
@ -4,6 +4,7 @@ import { useNavigate, useParams } from 'react-router-dom';
|
|||
import '../css/global.css';
|
||||
import { fetchYamlData } from './components/fetchYamlData';
|
||||
import StoryPage from './storyPage';
|
||||
import ConversationPage from './conversationPage.jsx';
|
||||
import LoadingScene from './components/loadingScene.jsx';
|
||||
|
||||
function VitualNovelHandler() {
|
||||
|
@ -58,7 +59,7 @@ function VitualNovelHandler() {
|
|||
case "story":
|
||||
return <StoryPage data={currentStepData} onClicked={handleNextStep}/>;
|
||||
case "conversation":
|
||||
return <div onClick={handleNextStep}>conversation</div>;
|
||||
return <ConversationPage data={currentStepData} onClicked={handleNextStep}/>;
|
||||
case "option":
|
||||
return <div onClick={handleNextStep}>option</div>;
|
||||
default:
|
||||
|
@ -67,7 +68,7 @@ function VitualNovelHandler() {
|
|||
};
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div style={{ width: "100svw", height: "100svh" }}>
|
||||
{renderComponent(currentStepData.type)}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue