Skip to content

Commit

Permalink
Basic stories set up
Browse files Browse the repository at this point in the history
  • Loading branch information
samau3 committed Aug 28, 2024
1 parent 3492e1f commit 503ade1
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions client/src/pages/patients/PatientRegistration.stories.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { useState } from "react";
import PatientRegistrationAccordion from "./PatientRegistrationAccordion";

import '@mantine/core/styles.css';

export default {
title: 'Patient Registration Accordion',
component: PatientRegistrationAccordion,
tags: ['autodocs'],
parameters : {
layout: 'fullscreen'
},
};

export const Default = {
args: {
form: {
getValues: () => ({
patientData: {
firstName: 'John',
middleName: 'A',
lastName: 'Doe',
gender: 'Male',
language: 'English',
dateOfBirth: '1990-01-01',
},
contactData: {
firstName: 'John',
middleName: 'A',
lastName: 'Doe',
phone: '1234567890',
email: 'john.doe@example.com',
relationship: 'Father',
},
medicalData: {
allergies: [],
medications: [],
conditions: [],
},
healthcareChoices: {
hospitalId: '1',
physicianId: '1',
},
codeStatus: 'Active',
}),
getInputProps: () => ({}),
isValid: () => true,
key: () => 'patientData',
validateField: () => true,
},
openedSection: 'patientData',
handleAccordionChange: (value) => {},
},
};


0 comments on commit 503ade1

Please sign in to comment.