Integrate wallet IFrame for payments #42
@ -15,6 +15,7 @@ const IFrame = ({
|
|||||||
}) => {
|
}) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleMessage = (event: MessageEvent) => {
|
const handleMessage = (event: MessageEvent) => {
|
||||||
|
// TODO: Use env for origin URL
|
||||||
if (event.origin !== 'http://localhost:3001') return;
|
if (event.origin !== 'http://localhost:3001') return;
|
||||||
|
|
||||||
if (event.data.type === 'WALLET_ACCOUNTS_DATA') {
|
if (event.data.type === 'WALLET_ACCOUNTS_DATA') {
|
||||||
|
@ -18,7 +18,6 @@ const GeneralTabPanel = () => {
|
|||||||
const client = useGQLClient();
|
const client = useGQLClient();
|
||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
const { project, onUpdate } = useOutletContext<OutletContextType>();
|
const { project, onUpdate } = useOutletContext<OutletContextType>();
|
||||||
console.log(project);
|
|
||||||
|
|
||||||
const [transferOrganizations, setTransferOrganizations] = useState<
|
const [transferOrganizations, setTransferOrganizations] = useState<
|
||||||
SelectOption[]
|
SelectOption[]
|
||||||
|
Loading…
Reference in New Issue
Block a user