rename upvote to upvotePopover

This commit is contained in:
Nouman Tahir 2023-02-21 12:35:05 +05:00
parent ffa8ae764a
commit 55c4cc88db
8 changed files with 12 additions and 12 deletions

View File

@ -11,7 +11,7 @@ import { delay } from '../../../utils/editor';
// Components
import { CommentBody, PostHeaderDescription } from '../../postElements';
import { Upvote } from '../../upvote';
import { Upvote } from '../../upvotePopover';
import { IconButton } from '../../iconButton';
import { TextWithIcon } from '../../basicUIElements';

View File

@ -57,7 +57,7 @@ import { TextInput } from './textInput';
import { ToastNotification } from './toastNotification';
import { ToggleSwitch } from './toggleSwitch';
import { TransferFormItem } from './transferFormItem';
import { Upvote } from './upvote';
import { UpvotePopover } from './upvotePopover';
import { UserAvatar } from './userAvatar';
import Logo from './logo/logo';
@ -221,7 +221,7 @@ export {
ToggleSwitch,
Transaction,
TransferFormItem,
Upvote,
UpvotePopover,
UserAvatar,
UserListItem,
VotersDisplay,

View File

@ -7,7 +7,7 @@ import { useNavigation } from '@react-navigation/native';
import ROUTES from '../../../constants/routeNames';
import { useIntl } from 'react-intl';
import Popover from 'react-native-modal-popover';
import Upvote from '../../upvote';
import { UpvotePopover } from '../..';
import { PostTypes } from '../../../constants/postTypes';
import { PostOptionsModal } from '../../postOptionsModal';
@ -284,7 +284,7 @@ const postsListContainer = (
}
{...props}
/>
<Upvote
<UpvotePopover
ref={upvotePopoverRef}
parentType={PostTypes.POST}
/>

View File

@ -1,4 +0,0 @@
import Upvote from './container/upvoteContainer';
export { Upvote };
export default Upvote;

View File

@ -9,7 +9,7 @@ import { getTimeFromNow } from '../../../utils/time';
import { FormattedCurrency } from '../../formatedElements';
// Styles
import styles from '../children/upvoteStyles';
import styles from './upvoteStyles';
interface Props {

View File

@ -54,7 +54,7 @@ interface Props {
*
*/
const UpvoteContainer = forwardRef(({ parentType }: Props, ref) => {
const UpvotePopover = forwardRef(({ parentType }: Props, ref) => {
const intl = useIntl();
const dispatch = useAppDispatch();
@ -409,4 +409,4 @@ const UpvoteContainer = forwardRef(({ parentType }: Props, ref) => {
);
});
export default UpvoteContainer;
export default UpvotePopover;

View File

@ -0,0 +1,4 @@
import UpvotePopover from './container/upvotePopover';
export { UpvotePopover };
export default UpvotePopover;