Skip to content

Commit

Permalink
wip: fixed typo in occurrences - Ref gestion-de-projet#2354
Browse files Browse the repository at this point in the history
  • Loading branch information
ManelleG committed Nov 29, 2024
1 parent 49704fb commit 023544d
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const Default: Story = {
label: "Nombre d'occurrences",
withHierarchyInfo: true,
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function CriteriaForm<T extends CommonCriteriaData>(props: Criter
}, [criteriaData, onDataChange])

console.log('rendering form')

console.log('test itemSections', itemSections)
return (
<CriteriaLayout
criteriaLabel={`${label}`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const form: () => CriteriaForm<ObservationDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const form: () => CriteriaForm<CcamDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const form: () => CriteriaForm<Cim10DataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const form: () => CriteriaForm<DocumentDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const form: () => CriteriaForm<EncounterDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export const form: () => CriteriaForm<GhmDataType> = () => ({
{
valueKey: 'occurrence',
type: 'numberAndComparator',
label: "Nombre d'occurences",
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ export const form: () => CriteriaForm<HospitDataType> = () => ({
{
valueKey: 'occurrence',
type: 'numberAndComparator',
label: "Nombre d'occurences",
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const form: () => CriteriaForm<ImagingDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const form: () => CriteriaForm<MedicationDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'reference', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'reference', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const form: () => CriteriaForm<PregnancyDataType> = () => ({
type: 'numberAndComparator',
label: "Nombre d'occurrences",
buildInfo: {
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurences" }]
chipDisplayMethodExtraArgs: [{ type: 'string', value: "Nombre d'occurrences" }]
}
},
{
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/Collapse/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type CollapseProps = {

const Collapse = ({ value = true, title, children, margin = '0 0 5px 0' }: PropsWithChildren<CollapseProps>) => {
const [checked, setChecked] = useState(value)
console.log('test children', children)

return (
<Grid container direction="column">
Expand Down
8 changes: 7 additions & 1 deletion src/components/ui/Inputs/CalendarRange/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ const CalendarRange = ({
) : (
label
)}
<Grid item xs={12} container spacing={2}>
<Grid
item
xs={12}
container
//TODO: trouver un moyen autre que spacing pour espacer les deux calendar input car rajoute maxWidth : 100% - 16px
spacing={2}
>
<Grid item xs={12} md={inline ? 6 : 12}>
<CalendarInput
disabled={disabled}
Expand Down

0 comments on commit 023544d

Please sign in to comment.