chore: reduce typo count (#50439)

This commit is contained in:
Bruce Mitchener 2024-08-15 21:51:41 +07:00 committed by GitHub
parent 4f01f225c8
commit d1a0fb862e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 19 additions and 18 deletions

View File

@ -787,7 +787,7 @@ Array [
<div
class="ant-alert-description"
>
Detailed description and advices about successful copywriting.
Detailed description and advice about successful copywriting.
</div>
</div>
</div>,
@ -827,7 +827,7 @@ Array [
<div
class="ant-alert-description"
>
Additional description and informations about copywriting.
Additional description and information about copywriting.
</div>
</div>
</div>,

View File

@ -775,7 +775,7 @@ Array [
<div
class="ant-alert-description"
>
Detailed description and advices about successful copywriting.
Detailed description and advice about successful copywriting.
</div>
</div>
</div>,
@ -815,7 +815,7 @@ Array [
<div
class="ant-alert-description"
>
Additional description and informations about copywriting.
Additional description and information about copywriting.
</div>
</div>
</div>,

View File

@ -18,7 +18,7 @@ const App: React.FC = () => (
<Alert
icon={icon}
message="Success Tips"
description="Detailed description and advices about successful copywriting."
description="Detailed description and advice about successful copywriting."
type="success"
showIcon
/>

View File

@ -19,7 +19,7 @@ const App: React.FC = () => (
<Alert
icon={icon}
message="Success Tips"
description="Detailed description and advices about successful copywriting."
description="Detailed description and advice about successful copywriting."
type="success"
showIcon
/>
@ -27,7 +27,7 @@ const App: React.FC = () => (
<Alert
icon={icon}
message="Informational Notes"
description="Additional description and informations about copywriting."
description="Additional description and information about copywriting."
type="info"
showIcon
/>

View File

@ -31,7 +31,7 @@ If it will take a long time to complete an operation, you can use `Progress` to
<code src="./demo/linecap.tsx">Stroke Linecap</code>
<code src="./demo/gradient-line.tsx">Custom line gradient</code>
<code src="./demo/steps.tsx">Progress bar with steps</code>
<code src="./demo/circle-steps.tsx" version="5.16.0">Circular progress bar whit steps</code>
<code src="./demo/circle-steps.tsx" version="5.16.0">Circular progress bar with steps</code>
<code src="./demo/size.tsx">Progress size</code>
<code src="./demo/info-position.tsx" version="5.18.0">Change progress value position</code>

View File

@ -89,16 +89,17 @@ describe('Table.sorter', () => {
{
title: 'Amount',
dataIndex: 'estimatedTicketsLeft',
sorter: (a:any, b:any) => a.estimatedTicketsLeft - b.estimatedTicketsLeft,
sorter: (a: any, b: any) => a.estimatedTicketsLeft - b.estimatedTicketsLeft,
sortDirections: ['descend', 'ascend'],
render: (text:any) => `${text} left`,
render: (text: any) => `${text} left`,
},
{
title: '[%]',
dataIndex: 'estimatedTicketsLeftPercentage',
sorter: (a:any, b:any) => a.estimatedTicketsLeftPercentage - b.estimatedTicketsLeftPercentage,
sorter: (a: any, b: any) =>
a.estimatedTicketsLeftPercentage - b.estimatedTicketsLeftPercentage,
sortDirections: ['descend', 'ascend'],
render: (text:any) => `${text.toFixed(2)}%`,
render: (text: any) => `${text.toFixed(2)}%`,
},
],
},
@ -512,7 +513,7 @@ describe('Table.sorter', () => {
expect(container.querySelector('.ant-tooltip-open')).toBeFalsy();
});
it('renders custome sort icon correctly', () => {
it('renders custom sort icon correctly', () => {
const sortIcon = ({ sortOrder }: { sortOrder?: SortOrder }): React.ReactNode => {
let text: string;
if (sortOrder === undefined) {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Table.sorter renders custome sort icon correctly 1`] = `
exports[`Table.sorter renders custom sort icon correctly 1`] = `
<span
class="customize-icon"
>
@ -8,7 +8,7 @@ exports[`Table.sorter renders custome sort icon correctly 1`] = `
</span>
`;
exports[`Table.sorter renders custome sort icon correctly 2`] = `
exports[`Table.sorter renders custom sort icon correctly 2`] = `
<span
class="customize-icon"
>
@ -16,7 +16,7 @@ exports[`Table.sorter renders custome sort icon correctly 2`] = `
</span>
`;
exports[`Table.sorter renders custome sort icon correctly 3`] = `
exports[`Table.sorter renders custom sort icon correctly 3`] = `
<span
class="customize-icon"
>

View File

@ -4,4 +4,4 @@
## en-US
Multiple line ellipsis support. You can use `tooltip` to configure ellipsis tooltip. The `expandable` property is recommened when you have lots of content.
Multiple line ellipsis support. You can use `tooltip` to configure ellipsis tooltip. The `expandable` property is recommended when you have lots of content.

View File

@ -1,4 +1,4 @@
/** converting camel-cased strings to be lowercase and link it with Separato */
/** converting camel-cased strings to be lowercase and link it with Separator */
export function toLowercaseSeparator(key: string) {
return key.replace(/([A-Z])/g, '-$1').toLowerCase();
}