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