Skip to content

Commit

Permalink
rm platform code
Browse files Browse the repository at this point in the history
  • Loading branch information
sknr15 committed Oct 25, 2022
1 parent 1517a0d commit b5b7bd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/Map/MapPicker/MapPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type Props = {
};

export const MapPicker = ({ map, onChange, testId }: Props) => {
const IS_WEB = Platform.OS === 'web';
const [hasPermissions, setHasPermissions] = useState<boolean>(false);
const [tempMap, setTempMap] = useState<TMap | undefined>(map);

Expand Down Expand Up @@ -69,7 +68,7 @@ export const MapPicker = ({ map, onChange, testId }: Props) => {
}
} else {
if (!hasPermissions) {
if (IS_WEB) {
if (Platform.OS === 'web') {
window?.confirm('No permissions to media library');
} else {
Alert.alert('No permission', 'No permissions to media library', [{ text: 'OK' }]);
Expand Down
1 change: 0 additions & 1 deletion src/Position/PositionPicker.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type Props = {
};

export const PositionPicker = ({ height, map, onChange, position, testId, width }: Props) => {
const IS_WEB = Platform.OS === 'web';
const [containerSize, setContainerSize] = useState<{
height: number;
width: number;
Expand Down

0 comments on commit b5b7bd7

Please sign in to comment.