mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
chore: reduce typo count (#50439)
This commit is contained in:
parent
4f01f225c8
commit
d1a0fb862e
@ -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>,
|
||||
|
@ -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>,
|
||||
|
@ -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
|
||||
/>
|
||||
|
@ -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
|
||||
/>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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"
|
||||
>
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user