create conversationPage
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
NekoVari 2025-05-06 17:08:03 +07:00
parent 8de6e9d771
commit 2336262c57
7 changed files with 92 additions and 76 deletions

View file

@ -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>
);