Skip to content

Commit

Permalink
type: fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 7, 2023
1 parent 3f737fa commit 0a0d42a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
3 changes: 0 additions & 3 deletions packages/amount-in-rmb/src/global.d.ts

This file was deleted.

6 changes: 1 addition & 5 deletions packages/amount-in-rmb/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const Label = styled.label`
gap: 10px;
`;

const SubTitle = styled.span`
font-size: 12px;
font-weight: normal;
`;
export interface InputRangeProps
extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
ref?: any;
Expand Down Expand Up @@ -56,7 +52,7 @@ export default function AmountInRMB() {

return (
<Wrapper>
<StyledLayout overflow="initial" title={t('menu./amount-in-rmb.label')}>
<StyledLayout overflow="initial" title={t('menu./amount-in-rmb.label').toString()}>
<InputRange
style={{ minWidth: 320, padding: '6px 5px' }}
type="number"
Expand Down
2 changes: 1 addition & 1 deletion packages/chinese-pinyin-conversion/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function ChinesePinyinConversion() {
return (
<Wrapper>
<StyledLayout
title={t('menu./chinese-pinyin-conversion.label')}
title={t('menu./chinese-pinyin-conversion.label').toString()}
extra={
<Fragment>
<Button onClick={() => setValue(sample)}>Sample</Button>
Expand Down
2 changes: 1 addition & 1 deletion packages/html-formatter/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default function HTMLFormatter() {
</StyledLayout>
{type === 'minify' && (
<StyledLayout
title={t('Options')}
title={t('Options').toString()}
style={{ maxWidth: 420 }}
extra={
<Fragment>
Expand Down
4 changes: 2 additions & 2 deletions packages/svg-optimizer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export default function SVGOptimizer() {
return (
<Wrapper>
<StyledLayout
title={t(`SVG Optimizer`)}
title={t(`SVG Optimizer`).toString()}
extra={<InputFile type="file" accept="image/svg+xml" multiple onChange={handleChange} />}
>
<ResultCode
Expand Down Expand Up @@ -365,7 +365,7 @@ export default function SVGOptimizer() {
</StyledLayout>
{imageData && imageData.length > 0 && (
<StyledLayout
title={t(`Options`, { ns: 'common' })}
title={t(`Options`, { ns: 'common' }).toString()}
style={{ maxWidth: 420 }}
extra={
<Fragment>
Expand Down

0 comments on commit 0a0d42a

Please sign in to comment.