Skip to content

Commit

Permalink
AlertModal: remove deprecated string ref
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Aug 28, 2024
1 parent 4bc1e3b commit 90483e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Modals/AlertModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { createRef } from 'react';
import { View, StyleSheet, Text } from 'react-native';
import { inject, observer } from 'mobx-react';

Expand Down Expand Up @@ -41,14 +41,16 @@ export default class AlertModal extends React.Component<AlertModalProps, {}> {
);
});

const ref = createRef();

return (
<ModalBox
isOpen={showAlertModal}
style={{
backgroundColor: 'transparent',
minHeight: 200
}}
ref="modal"
ref={ref}
>
<View
style={{
Expand Down

0 comments on commit 90483e1

Please sign in to comment.