Skip to content

Commit

Permalink
[@mantine/tiptap] Fix typo in strikethrough label (#3004)
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshaacharya committed Nov 19, 2022
1 parent e6bfc5d commit bb3b2cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/docs/others/tiptap.mdx
Expand Up @@ -432,7 +432,7 @@ export const DEFAULT_LABELS: RichTextEditorLabels = {
boldControlLabel: 'Bold',
italicControlLabel: 'Italic',
underlineControlLabel: 'Underline',
strikeControlLabel: 'Strike though',
strikeControlLabel: 'Strikethrough',
clearFormattingControlLabel: 'Clear formatting',
unlinkControlLabel: 'Remove link',
bulletListControlLabel: 'Bullet list',
Expand Down
2 changes: 1 addition & 1 deletion src/mantine-tiptap/src/RichTextEditor.tsx
Expand Up @@ -88,7 +88,7 @@ RichTextEditor.Toolbar = Toolbar;
// Controls components
RichTextEditor.Bold = controls.BoldControl;
RichTextEditor.Italic = controls.ItalicControl;
RichTextEditor.Strikethrough = controls.StrikeThoughControl;
RichTextEditor.Strikethrough = controls.StrikeThroughControl;
RichTextEditor.Underline = controls.UnderlineControl;
RichTextEditor.ClearFormatting = controls.ClearFormattingControl;
RichTextEditor.H1 = controls.H1Control;
Expand Down
2 changes: 1 addition & 1 deletion src/mantine-tiptap/src/controls/controls.tsx
Expand Up @@ -49,7 +49,7 @@ export const UnderlineControl = createControl({
operation: { name: 'toggleUnderline' },
});

export const StrikeThoughControl = createControl({
export const StrikeThroughControl = createControl({
label: 'strikeControlLabel',
icon: (props) => <IconStrikethrough {...props} stroke={1.5} />,
isActive: { name: 'strike' },
Expand Down
2 changes: 1 addition & 1 deletion src/mantine-tiptap/src/labels.ts
Expand Up @@ -126,7 +126,7 @@ export const DEFAULT_LABELS: RichTextEditorLabels = {
boldControlLabel: 'Bold',
italicControlLabel: 'Italic',
underlineControlLabel: 'Underline',
strikeControlLabel: 'Strike though',
strikeControlLabel: 'Strikethrough',
clearFormattingControlLabel: 'Clear formatting',
unlinkControlLabel: 'Remove link',
bulletListControlLabel: 'Bullet list',
Expand Down

0 comments on commit bb3b2cf

Please sign in to comment.