Naprawa błędów awatara
This commit is contained in:
6
App.tsx
6
App.tsx
@@ -249,13 +249,13 @@ const App: React.FC = () => {
|
||||
<header className="bg-white sticky top-0 z-10 border-b border-gray-100">
|
||||
<div className="max-w-4xl mx-auto px-6 py-4 flex justify-between items-center">
|
||||
<div className="flex items-center space-x-3">
|
||||
{/* LOGO LOGIC: Use imported logoImg */}
|
||||
{/* LOGO LOGIC: Use imported logoImg. UPDATED: h-12 for 20% larger size (approx) */}
|
||||
{!logoError ? (
|
||||
<img
|
||||
src={logoImg}
|
||||
alt="Logo"
|
||||
onError={() => setLogoError(true)}
|
||||
className="h-10 object-contain"
|
||||
className="h-12 object-contain"
|
||||
/>
|
||||
) : (
|
||||
<div className="flex items-center gap-2">
|
||||
@@ -298,7 +298,7 @@ const App: React.FC = () => {
|
||||
{data.step === Step.PLATFORM && <StepPlatform data={data} updateData={updateData} nextStep={nextStep} />}
|
||||
{data.step === Step.TONE_GOAL && <StepToneGoal data={data} updateData={updateData} nextStep={nextStep} />}
|
||||
{data.step === Step.DETAILS && <StepDetails data={data} updateData={updateData as any} onGenerate={handleGenerate} isGenerating={isGenerating} />}
|
||||
{data.step === Step.RESULT && generatedContent && <StepResult content={generatedContent} onRegenerate={handleRegenerate} isRegenerating={isGenerating} tripData={data.tripData} />}
|
||||
{data.step === Step.RESULT && generatedContent && <StepResult content={generatedContent} onRegenerate={handleRegenerate} isRegenerating={isGenerating} tripData={data.tripData} eventType={data.eventType} />}
|
||||
|
||||
{errorMessage && (
|
||||
<div className="mt-6 p-4 bg-red-50 text-red-600 rounded-md border border-red-100 text-sm text-center">
|
||||
|
||||
@@ -109,7 +109,7 @@ export const UI_TEXT = {
|
||||
files: "Materiały pomocnicze (Max 3)",
|
||||
filesDrop: "Kliknij, aby dodać pliki",
|
||||
filesSub: "GPX, PDF, JPG, PNG",
|
||||
gpxPreviewBtn: "👁️ Podgląd danych dla AI"
|
||||
gpxPreviewBtn: "Podgląd danych dla AI"
|
||||
},
|
||||
generateBtn: {
|
||||
loading: "Generowanie Historii...",
|
||||
|
||||
@@ -10,9 +10,10 @@ interface ExtendedStepResultProps {
|
||||
onRegenerate: (slideCount: number, feedback: string) => void;
|
||||
isRegenerating: boolean;
|
||||
tripData?: WizardState['tripData'];
|
||||
eventType?: WizardState['eventType'];
|
||||
}
|
||||
|
||||
const StepResult: React.FC<ExtendedStepResultProps> = ({ content, onRegenerate, isRegenerating, tripData }) => {
|
||||
const StepResult: React.FC<ExtendedStepResultProps> = ({ content, onRegenerate, isRegenerating, tripData, eventType }) => {
|
||||
const [copiedSection, setCopiedSection] = useState<string | null>(null);
|
||||
const [copiedSlideIndex, setCopiedSlideIndex] = useState<number | null>(null);
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
@@ -119,7 +120,8 @@ const StepResult: React.FC<ExtendedStepResultProps> = ({ content, onRegenerate,
|
||||
</div>
|
||||
)}
|
||||
|
||||
{tripData && tripData.startPoint && (
|
||||
{/* MAPA WYŚWIETLA SIĘ TYLKO DLA WYCIECZEK */}
|
||||
{eventType === 'trip' && tripData && tripData.startPoint && (
|
||||
<TripMap tripData={tripData} />
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user