mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-04 07:05:20 +03:00
rename upvote to upvotePopover
This commit is contained in:
parent
ffa8ae764a
commit
55c4cc88db
@ -11,7 +11,7 @@ import { delay } from '../../../utils/editor';
|
|||||||
|
|
||||||
// Components
|
// Components
|
||||||
import { CommentBody, PostHeaderDescription } from '../../postElements';
|
import { CommentBody, PostHeaderDescription } from '../../postElements';
|
||||||
import { Upvote } from '../../upvote';
|
import { Upvote } from '../../upvotePopover';
|
||||||
import { IconButton } from '../../iconButton';
|
import { IconButton } from '../../iconButton';
|
||||||
import { TextWithIcon } from '../../basicUIElements';
|
import { TextWithIcon } from '../../basicUIElements';
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ import { TextInput } from './textInput';
|
|||||||
import { ToastNotification } from './toastNotification';
|
import { ToastNotification } from './toastNotification';
|
||||||
import { ToggleSwitch } from './toggleSwitch';
|
import { ToggleSwitch } from './toggleSwitch';
|
||||||
import { TransferFormItem } from './transferFormItem';
|
import { TransferFormItem } from './transferFormItem';
|
||||||
import { Upvote } from './upvote';
|
import { UpvotePopover } from './upvotePopover';
|
||||||
import { UserAvatar } from './userAvatar';
|
import { UserAvatar } from './userAvatar';
|
||||||
|
|
||||||
import Logo from './logo/logo';
|
import Logo from './logo/logo';
|
||||||
@ -221,7 +221,7 @@ export {
|
|||||||
ToggleSwitch,
|
ToggleSwitch,
|
||||||
Transaction,
|
Transaction,
|
||||||
TransferFormItem,
|
TransferFormItem,
|
||||||
Upvote,
|
UpvotePopover,
|
||||||
UserAvatar,
|
UserAvatar,
|
||||||
UserListItem,
|
UserListItem,
|
||||||
VotersDisplay,
|
VotersDisplay,
|
||||||
|
@ -7,7 +7,7 @@ import { useNavigation } from '@react-navigation/native';
|
|||||||
import ROUTES from '../../../constants/routeNames';
|
import ROUTES from '../../../constants/routeNames';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import Popover from 'react-native-modal-popover';
|
import Popover from 'react-native-modal-popover';
|
||||||
import Upvote from '../../upvote';
|
import { UpvotePopover } from '../..';
|
||||||
import { PostTypes } from '../../../constants/postTypes';
|
import { PostTypes } from '../../../constants/postTypes';
|
||||||
import { PostOptionsModal } from '../../postOptionsModal';
|
import { PostOptionsModal } from '../../postOptionsModal';
|
||||||
|
|
||||||
@ -284,7 +284,7 @@ const postsListContainer = (
|
|||||||
}
|
}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
<Upvote
|
<UpvotePopover
|
||||||
ref={upvotePopoverRef}
|
ref={upvotePopoverRef}
|
||||||
parentType={PostTypes.POST}
|
parentType={PostTypes.POST}
|
||||||
/>
|
/>
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
import Upvote from './container/upvoteContainer';
|
|
||||||
|
|
||||||
export { Upvote };
|
|
||||||
export default Upvote;
|
|
@ -9,7 +9,7 @@ import { getTimeFromNow } from '../../../utils/time';
|
|||||||
|
|
||||||
import { FormattedCurrency } from '../../formatedElements';
|
import { FormattedCurrency } from '../../formatedElements';
|
||||||
// Styles
|
// Styles
|
||||||
import styles from '../children/upvoteStyles';
|
import styles from './upvoteStyles';
|
||||||
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
@ -54,7 +54,7 @@ interface Props {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const UpvoteContainer = forwardRef(({ parentType }: Props, ref) => {
|
const UpvotePopover = forwardRef(({ parentType }: Props, ref) => {
|
||||||
|
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
@ -409,4 +409,4 @@ const UpvoteContainer = forwardRef(({ parentType }: Props, ref) => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
export default UpvoteContainer;
|
export default UpvotePopover;
|
4
src/components/upvotePopover/index.js
Normal file
4
src/components/upvotePopover/index.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import UpvotePopover from './container/upvotePopover';
|
||||||
|
|
||||||
|
export { UpvotePopover };
|
||||||
|
export default UpvotePopover;
|
Loading…
Reference in New Issue
Block a user