Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(toutiao): 修复 Canvas[canvasId] 无效的问题 (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pochodaydayup committed May 16, 2020
1 parent b0bd005 commit ef5c162
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Canvas from '../../hostComponents/Canvas';

describe('Canvas', () => {
it('render correctly', () => {
const testRenderer = TestRenderer.create(<Canvas cavasId="id" />);
const testRenderer = TestRenderer.create(<Canvas canvasId="id" />);

expect(testRenderer.toJSON()).toMatchSnapshot();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports[`Canvas render correctly 1`] = `
<canvas
cavasId="id"
canvasId="id"
/>
`;
2 changes: 1 addition & 1 deletion packages/remax-toutiao/src/hostComponents/Canvas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import createHostComponent from '../../createHostComponent';
import { BaseProps } from '../../types/component';

export interface CanvasProps extends BaseProps {
cavasId: string;
canvasId: string;
}

export default createHostComponent<CanvasProps>('canvas');

0 comments on commit ef5c162

Please sign in to comment.