Formatting

This commit is contained in:
Tanner Collin 2022-07-14 14:58:50 -07:00
parent c954b73da4
commit 21972b7ebf
4 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ import { NotFound } from './Misc.js';
export function TransactionEditor(props) { export function TransactionEditor(props) {
const { token, input, setInput, error, noMemberSearch } = 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 handleValues = (e, v) => setInput({ ...input, [v.name]: v.value });
const handleChange = (e) => handleValues(e, e.currentTarget); const handleChange = (e) => handleValues(e, e.currentTarget);
@ -102,7 +102,7 @@ export function TransactionEditor(props) {
onChange={handleValues} 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 visible warning>
<Message.Header>Are you sure?</Message.Header> <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> <p>PayPal transactions should be automatic. Double check there's no duplicate. They may take 24h to appear.</p>