Skip to content

Commit 591bb95

Browse files
samsharabarshathakuri
authored andcommitted
fix: typos in go-ui and storybook
1 parent 15f3a62 commit 591bb95

File tree

16 files changed

+39
-42
lines changed

16 files changed

+39
-42
lines changed

packages/go-ui-storybook/src/stories/BlockLoading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import {
33
BlockLoadingProps,
44
} from '@ifrc-go/ui';
55

6-
function Blockloading(props: BlockLoadingProps) {
6+
function BlockLoading(props: BlockLoadingProps) {
77
return (
88
// eslint-disable-next-line react/jsx-props-no-spreading
99
<PureBlockLoading {...props} />
1010
);
1111
}
12-
export default Blockloading;
12+
export default BlockLoading;

packages/go-ui-storybook/src/stories/Container.stories.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export const WithGridViewAndPadding: Story = {
9595
contentViewType: 'grid',
9696
spacing: 'default',
9797
numPreferredGridContentColumns: 2,
98-
withGridViewInFilter: true,
9998
},
10099
};
101100

@@ -109,7 +108,7 @@ export const ContainerElementRef: Story = {
109108
},
110109
};
111110

112-
export const WithHeadinglevel: Story = {
111+
export const WithHeadingLevel: Story = {
113112
args: {
114113
heading: 'Container Heading',
115114
headerDescription: 'This is a description for the header',
@@ -148,7 +147,7 @@ export const NumPreferredGridContentColumns: Story = {
148147
numPreferredGridContentColumns: 2,
149148
},
150149
};
151-
export const Withspacing: Story = {
150+
export const WithSpacing: Story = {
152151
args: {
153152
heading: 'Container Heading',
154153
headerDescription: 'This is a description for the header',
@@ -158,7 +157,6 @@ export const Withspacing: Story = {
158157
contentViewType: 'default',
159158
spacing: 'none',
160159
numPreferredGridContentColumns: 2,
161-
withGridViewInFilter: true,
162160
},
163161
};
164162

@@ -172,7 +170,6 @@ export const WithGridViewInFilter: Story = {
172170
contentViewType: 'default',
173171
spacing: 'default',
174172
numPreferredGridContentColumns: 2,
175-
withGridViewInFilter: true,
176173
},
177174
};
178175

packages/go-ui-storybook/src/stories/RadioInput.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function Template(args:Args) {
5757
] = useArgs();
5858

5959
// NOTE: We are casting args as props because of discriminated union
60-
// used in RadionInputProps
60+
// used in RadioInputProps
6161
const handleChange = (val: string | undefined, name: string) => {
6262
setArgs({ value: val });
6363
// eslint-disable-next-line react/destructuring-assignment

packages/go-ui-storybook/src/stories/SearchMultiSelectInput.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const options: Option[] = [
3737
},
3838
{
3939
key: '4',
40-
label: 'Forecasst Based Action',
40+
label: 'Forecast Based Action',
4141
},
4242
];
4343
const keySelector = (d: Option) => d.key;
@@ -106,7 +106,7 @@ function Template(args:Args) {
106106
keySelector={keySelector}
107107
labelSelector={labelSelector}
108108
placeholder="Select an emergency type"
109-
name="searchmultiselectinput"
109+
name="search"
110110
/>
111111
);
112112
}

packages/go-ui-storybook/src/stories/SearchSelectInput.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function Template(args:Args) {
109109
labelSelector={labelSelector}
110110
onChange={handleChange}
111111
value={value}
112-
name="searchselectinput"
112+
name="search"
113113
options={options}
114114
onSearchValueChange={handleSearchValueChange}
115115
searchOptions={filteredOptions}

packages/go-ui-storybook/src/stories/SelectInput.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const Disabled: Story = {
119119
},
120120
};
121121

122-
export const Novalue: Story = {
122+
export const NoValue: Story = {
123123
args: {
124124
name: 'no-value',
125125
options,

packages/go-ui-storybook/src/stories/Table.stories.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Table from './Table';
1919
interface Data {
2020
id: number;
2121
name: string;
22-
dateofbirth: string;
22+
dateOfBirth: string;
2323
link: string;
2424
characteristics: string[];
2525
status: string;
@@ -31,7 +31,7 @@ const data = [
3131
{
3232
id: 1,
3333
name: 'African Elephant',
34-
dateofbirth: '2010-05-12',
34+
dateOfBirth: '2010-05-12',
3535
link: 'https://en.wikipedia.org/wiki/african_elephant',
3636
characteristics: [
3737
'Large',
@@ -45,7 +45,7 @@ const data = [
4545
{
4646
id: 2,
4747
name: 'Bald Eagle',
48-
dateofbirth: '2012-07-04',
48+
dateOfBirth: '2012-07-04',
4949
link: 'https://en.wikipedia.org/wiki/bald_eagle',
5050
characteristics: [
5151
'Large wingspan',
@@ -59,7 +59,7 @@ const data = [
5959
{
6060
id: 3,
6161
name: 'Cheetah',
62-
dateofbirth: '2015-03-22',
62+
dateOfBirth: '2015-03-22',
6363
link: 'https://en.wikipedia.org/wiki/cheetah',
6464
characteristics: [
6565
'Fast',
@@ -73,7 +73,7 @@ const data = [
7373
{
7474
id: 4,
7575
name: 'Dolphin',
76-
dateofbirth: '2013-09-18',
76+
dateOfBirth: '2013-09-18',
7777
link: 'https://en.wikipedia.org/wiki/dolphin',
7878
characteristics: [
7979
'Intelligent',
@@ -87,7 +87,7 @@ const data = [
8787
{
8888
id: 5,
8989
name: 'Emperor Penguin',
90-
dateofbirth: '2011-12-01',
90+
dateOfBirth: '2011-12-01',
9191
link: 'https://en.wikipedia.org/wiki/emperor_penguin',
9292
characteristics: [
9393
'Large',
@@ -101,7 +101,7 @@ const data = [
101101
{
102102
id: 6,
103103
name: 'Fennec Fox',
104-
dateofbirth: '2016-01-10',
104+
dateOfBirth: '2016-01-10',
105105
link: 'https://en.wikipedia.org/wiki/fennec_fox',
106106
characteristics: [
107107
'Small',
@@ -115,7 +115,7 @@ const data = [
115115
{
116116
id: 7,
117117
name: 'Giant Panda',
118-
dateofbirth: '2014-08-23',
118+
dateOfBirth: '2014-08-23',
119119
link: 'https://en.wikipedia.org/wiki/giant_panda',
120120
characteristics: [
121121
'Black and white',
@@ -129,7 +129,7 @@ const data = [
129129
{
130130
id: 8,
131131
name: 'Great White Shark',
132-
dateofbirth: '2009-06-15',
132+
dateOfBirth: '2009-06-15',
133133
link: 'https://en.wikipedia.org/wiki/great_white_shark',
134134
characteristics: [
135135
'Large',
@@ -143,11 +143,11 @@ const data = [
143143
{
144144
id: 9,
145145
name: 'Hummingbird',
146-
dateofbirth: '2018-04-05',
146+
dateOfBirth: '2018-04-05',
147147
link: 'https://en.wikipedia.org/wiki/hummingbird',
148148
characteristics: [
149149
'Small',
150-
'Colorful',
150+
'Colourful',
151151
'Fast wings',
152152
],
153153
status: 'Least Concern',
@@ -157,7 +157,7 @@ const data = [
157157
{
158158
id: 10,
159159
name: 'Indian Tiger',
160-
dateofbirth: '2013-11-11',
160+
dateOfBirth: '2013-11-11',
161161
link: 'https://en.wikipedia.org/wiki/indian_tiger',
162162
characteristics: [
163163
'Striped',
@@ -183,9 +183,9 @@ const columns = [
183183
(item) => item.name,
184184
),
185185
createDateColumn<Data, number>(
186-
'dateofbirth',
186+
'dateOfBirth',
187187
'Date of Birth',
188-
(item) => item.dateofbirth,
188+
(item) => item.dateOfBirth,
189189
),
190190
createElementColumn<Data, number, { link: string, title: string }>(
191191
'link',

packages/go-ui-storybook/src/stories/TextInput.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Template(args:Args) {
4747
<TextInput
4848
// eslint-disable-next-line react/jsx-props-no-spreading
4949
{...args}
50-
name="textinput"
50+
name="textInput"
5151
onChange={onChange}
5252
value={value}
5353
/>

packages/go-ui-storybook/src/stories/Typography.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const SampleText = 'Night; and once again, the while I wait for you, cold
3737

3838
**Font Type:** Sans Serif
3939

40-
**Weights:** 300(light), 400(regular), 500(medium), 600(semibold), 700(blold)
40+
**Weights:** 300(light), 400(regular), 500(medium), 600(semibold), 700(bold)
4141

4242
<Typeset
4343
fontSizes={[
@@ -60,7 +60,7 @@ export const SampleText = 'Night; and once again, the while I wait for you, cold
6060

6161
**Font Type:** Serif
6262

63-
**Weights:** 300(light), 400(regular), 500(medium), 600(semibold), 700(blold)
63+
**Weights:** 300(light), 400(regular), 500(medium), 600(semibold), 700(bold)
6464

6565
<Typeset
6666
fontSizes={[
@@ -84,7 +84,7 @@ export const SampleText = 'Night; and once again, the while I wait for you, cold
8484

8585
**Font Type:** Monospace
8686

87-
**Weights:** 300(light), 400(regular), 500(medium), 600(semibold), 700(blold)
87+
**Weights:** 300(light), 400(regular), 500(medium), 600(semibold), 700(bold)
8888

8989
<Typeset
9090
fontSizes={[

packages/ui/src/components/AlertContainer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function AlertContainer(props: Props) {
3434
useEffect(
3535
() => {
3636
alerts.filter((alert) => !alert.nonDismissable).forEach((alert) => {
37-
// NOTE: skip if there is alreayd a timeout
37+
// NOTE: skip if there is already a timeout
3838
if (dismissTimeout.current[alert.name]) {
3939
return;
4040
}

0 commit comments

Comments
 (0)