Extract location utils from components (#8152)
* extract util functions from MLocationBody Signed-off-by: Kerry Archibald <kerrya@element.io> * disassemble mlocationbody Signed-off-by: Kerry Archibald <kerrya@element.io> * tidy and add copyrights Signed-off-by: Kerry Archibald <kerrya@element.io> * move types and utils from components/location to utils Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * empty line Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
0d513b3a2d
commit
1397652f52
20 changed files with 496 additions and 350 deletions
|
@ -18,9 +18,9 @@ import React from 'react';
|
|||
|
||||
import { Icon as WarningBadge } from '../../../../res/img/element-icons/warning-badge.svg';
|
||||
import { _t } from '../../../languageHandler';
|
||||
import { getLocationShareErrorMessage, LocationShareError } from '../../../utils/location';
|
||||
import AccessibleButton from '../elements/AccessibleButton';
|
||||
import Heading from '../typography/Heading';
|
||||
import { getLocationShareErrorMessage, LocationShareError } from './LocationShareErrors';
|
||||
|
||||
interface Props {
|
||||
onFinished: () => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue