Formatting
This commit is contained in:
parent
c954b73da4
commit
21972b7ebf
|
@ -1,5 +1,5 @@
|
|||
import React, { useState, useEffect, useReducer } from 'react';
|
||||
import { Switch, Route, Link, useHistory } from 'react-router-dom';
|
||||
import { Switch, Route, Link, useHistory } from 'react-router-dom';
|
||||
import './semantic-ui/semantic.min.css';
|
||||
import './light.css';
|
||||
import './dark.css';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useState } from 'react';
|
||||
import { Route, Link } from 'react-router-dom';
|
||||
import { Route, Link } from 'react-router-dom';
|
||||
import './light.css';
|
||||
import { Container, Form, Header, Image, Message, Segment } from 'semantic-ui-react';
|
||||
import { requester } from './utils.js';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useState } from 'react';
|
||||
import { Link, useParams } from 'react-router-dom';
|
||||
import { Link, useParams } from 'react-router-dom';
|
||||
import ReactQuill from 'react-quill';
|
||||
import 'react-quill/dist/quill.snow.css';
|
||||
import './light.css';
|
||||
|
|
|
@ -11,7 +11,7 @@ import { NotFound } from './Misc.js';
|
|||
export function TransactionEditor(props) {
|
||||
const { token, input, setInput, error, noMemberSearch } = props;
|
||||
|
||||
const [ prevInput ] = useState(input);
|
||||
const [prevInput] = useState(input);
|
||||
|
||||
const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value });
|
||||
const handleChange = (e) => handleValues(e, e.currentTarget);
|
||||
|
@ -102,7 +102,7 @@ export function TransactionEditor(props) {
|
|||
onChange={handleValues}
|
||||
/>
|
||||
|
||||
{ input?.account_type !== prevInput?.account_type && input?.account_type === 'PayPal' &&
|
||||
{input?.account_type !== prevInput?.account_type && input?.account_type === 'PayPal' &&
|
||||
<Message visible warning>
|
||||
<Message.Header>Are you sure?</Message.Header>
|
||||
<p>PayPal transactions should be automatic. Double check there's no duplicate. They may take 24h to appear.</p>
|
||||
|
|
Loading…
Reference in New Issue
Block a user