Skip to content

Commit 9f889c1

Browse files
failed conflict fix (I do not think I will use GitHub in the future to fix merge conflicts)
1 parent 9a8bb7b commit 9f889c1

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

src/components/form-elements/date-input/DateInputContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createContext, type ChangeEvent } from 'react';
55
export type IDateInputContext = {
66
id: string;
77
name: string;
8-
error: string | undefined;
8+
error: React.ReactNode | undefined;
99
value?: { day?: string; month?: string; year?: string };
1010
defaultValue?: { day?: string; month?: string; year?: string };
1111
handleChange: (inputType: 'day' | 'month' | 'year', event: ChangeEvent<HTMLInputElement>) => void;

stories/Form Elements/Checkboxes.stories.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,6 @@ export const WithHintHTML: Story = {
101101
),
102102
};
103103

104-
export const WithDisabledItem: Story = {
105-
render: (args) => (
106-
<form>
107-
<Checkboxes id="colours" name="colours">
108-
<Checkboxes.Item value="red">Red</Checkboxes.Item>
109-
<Checkboxes.Item value="green">Green</Checkboxes.Item>
110-
<Checkboxes.Item value="red" disabled>
111-
Blue
112-
</Checkboxes.Item>
113-
</Checkboxes>
114-
</form>
115-
),
116104
export const Small: Story = {
117105
args: {
118106
...Standard.args,

stories/Form Elements/Radios.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ export const RadiosWithHTMLHintsOnItems: Story = {
132132
<>
133133
You&#39;ll{' '}
134134
<span className="nhsuk-u-nowrap">
135-
have a user ID if you've registered for self-assessment or filed a tax return online
136-
before.
135+
have a user ID if you&apos;ve registered for self-assessment or filed a tax return
136+
online before.
137137
</span>
138138
</>
139139
}
@@ -158,7 +158,6 @@ export const RadiosWithHTMLHintsOnItems: Story = {
158158
),
159159
};
160160

161-
162161
export const SmallRadios: Story = {
163162
args: {
164163
...StandardRadios.args,

stories/Form Elements/Select.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const SelectWithErrorAndHintText: Story = {
9494
args: {
9595
hint: 'Hint text goes here',
9696
},
97-
render: function SelectWithErrorAndHintTextRender() {
97+
render: function SelectWithErrorAndHintTextRender(args) {
9898
const [error, setError] = useState<string>('Error message goes here');
9999
return (
100100
<>

0 commit comments

Comments
 (0)