get the client mostly working
This commit is contained in:
parent
fd9f9e3d85
commit
ab70385bb3
@ -61,6 +61,7 @@ export function App() {
|
|||||||
step={step!}
|
step={step!}
|
||||||
onPrint={() => handlePrintStep(String(selectedStep.id), '1')} // TODO: Get real user ID
|
onPrint={() => handlePrintStep(String(selectedStep.id), '1')} // TODO: Get real user ID
|
||||||
onAddNote={(content) => handleAddNote(content, '1')} // TODO: Get real user ID
|
onAddNote={(content) => handleAddNote(content, '1')} // TODO: Get real user ID
|
||||||
|
onBack={handleBack}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<MobileLayout
|
<MobileLayout
|
||||||
|
@ -1,18 +1,23 @@
|
|||||||
import { Box, Typography, Button, TextField } from '@mui/material';
|
import { Box, Typography, Button, TextField, IconButton } from '@mui/material';
|
||||||
|
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
|
||||||
import type { StepWithNotes } from '../types';
|
import type { StepWithNotes } from '../types';
|
||||||
|
|
||||||
interface StepDetailsProps {
|
interface StepDetailsProps {
|
||||||
step: StepWithNotes;
|
step: StepWithNotes;
|
||||||
onPrint: () => void;
|
onPrint: () => void;
|
||||||
onAddNote: (content: string) => void;
|
onAddNote: (content: string) => void;
|
||||||
|
onBack: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function StepDetails({ step, onPrint, onAddNote }: StepDetailsProps) {
|
export function StepDetails({ step, onPrint, onAddNote, onBack }: StepDetailsProps) {
|
||||||
return (
|
return (
|
||||||
<Box sx={{ p: 2 }}>
|
<Box sx={{ p: 2 }}>
|
||||||
<Typography variant="h6" sx={{ mb: 2 }}>
|
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
|
||||||
{step.name}
|
<IconButton onClick={onBack} sx={{ mr: 1 }}>
|
||||||
</Typography>
|
<ArrowBackIcon />
|
||||||
|
</IconButton>
|
||||||
|
<Typography variant="h6">{step.name}</Typography>
|
||||||
|
</Box>
|
||||||
<Typography sx={{ mb: 4 }}>{step.instructions}</Typography>
|
<Typography sx={{ mb: 4 }}>{step.instructions}</Typography>
|
||||||
|
|
||||||
<Box sx={{ mb: 4 }}>
|
<Box sx={{ mb: 4 }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user