Skip to content

Commit

Permalink
fix: picker ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 22, 2023
1 parent 87b0cc1 commit ab9bb30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/component/chatRoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import React, { useContext, useEffect, useRef, useState } from 'react';
import PlayerAvatar from '../playerAvatar/index.js';
import data from '@emoji-mart/data';
import Picker from '@emoji-mart/react';
const TypedPicker = Picker as unknown as (props: any) => React.JSX.Element;

const chatContainerStyle = css`
width: 50vw;
Expand Down Expand Up @@ -104,7 +105,7 @@ export default function ChatRoom (): React.JSX.Element {
max-height: 200px;
}
`}>
<Picker
<TypedPicker
className='asda'
locale='zh'
categories='people'
Expand Down

0 comments on commit ab9bb30

Please sign in to comment.