Skip to content

Commit 3ee5092

Browse files
Merge branch 'v2' into feature/error-boundaries
2 parents 344077d + 178bb2a commit 3ee5092

File tree

95 files changed

+91
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+91
-78
lines changed

.storybook/components/CodeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { CodeBlock, shadesOfPurple } from 'react-code-blocks';
33

4-
export const Code = ({ children }) => (
4+
export const Code = ({ children }: { children: string }) => (
55
<CodeBlock
66
text={children}
77
language="jsx"

.storybook/manager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const theme = create({
1111
brandTitle: '⚛️ React Design Patterns',
1212
brandUrl: 'https://example.com',
1313
brandTarget: '_self',
14-
//
1514
colorPrimary: '#ffffff',
1615
colorSecondary: '#A599E9',
1716

src/course/02- lessons/01-Bronze/Hooks/components.tsx renamed to src/course/02-lessons/01-Bronze/Hooks/components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Label } from '@shared/components/Label/Label.component';
33
import { ErrorMessage } from '@shared/components/ErrorMessage/ErrorMessage.component';
44
import { HTMLAttributes } from 'react';
55

6-
export interface ITextFieldProps {
6+
export interface TextFieldProps {
77
hasError: boolean;
88
errorMessage?: string;
99
id: string;
@@ -19,7 +19,7 @@ export const TextFieldComponent = ({
1919
id,
2020
name,
2121
label
22-
}: ITextFieldProps) => (
22+
}: TextFieldProps) => (
2323
<div className="flex flex-col gap-2">
2424
<Label htmlFor={id}>{label}</Label>
2525
<Input id={id} name={name} hasError={hasError} {...input} />

src/course/02- lessons/01-Bronze/Hooks/exercise/exercise.tsx renamed to src/course/02-lessons/01-Bronze/Hooks/exercise/exercise.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChangeEvent, useState } from 'react';
2-
import { ITextFieldProps, TextFieldComponent } from '../components';
2+
import { TextFieldProps, TextFieldComponent } from '../components';
33

44
/*
55
* Observations
@@ -16,7 +16,7 @@ interface IFieldProps {
1616
id: string;
1717
label: string;
1818
errorMessage?: string;
19-
children: (props: ITextFieldProps) => React.ReactNode;
19+
children: (props: TextFieldProps) => React.ReactNode;
2020
}
2121

2222
const validateTextString = (value: string) =>

0 commit comments

Comments
 (0)