From 07cbeed61b34d3ab520a2e4a37e11b281e33d8b1 Mon Sep 17 00:00:00 2001 From: veeepi Date: Fri, 14 May 2021 08:53:11 -0700 Subject: [PATCH] clean up console.logs; #120 --- src/components/AppBar.js | 2 -- src/components/Checkmark.js | 1 - src/components/LandingPage/ResultDetail.js | 3 --- src/components/LandingPage/SearchResults.js | 4 ---- src/components/LandingPage/TrademarkSearch.js | 8 +++----- src/components/RegisterPage/OrganizationForm.js | 2 +- src/components/TrademarkApplicationPage/ConfirmOrder.js | 2 -- src/components/TrademarkApplicationPage/PaymentForm.js | 8 -------- src/network.js | 3 --- src/services/checkmarks.js | 1 - src/utils/FormValidation.js | 1 - 11 files changed, 4 insertions(+), 31 deletions(-) diff --git a/src/components/AppBar.js b/src/components/AppBar.js index 306171f..1ea016d 100644 --- a/src/components/AppBar.js +++ b/src/components/AppBar.js @@ -190,8 +190,6 @@ export default function MenuAppBar({ const history = useHistory(); const location = useLocation(); - console.log('location: ', location); - // MENU const [anchorEl, setAnchorEl] = useState(null); const open = Boolean(anchorEl); diff --git a/src/components/Checkmark.js b/src/components/Checkmark.js index 4b0ca1e..026ea11 100644 --- a/src/components/Checkmark.js +++ b/src/components/Checkmark.js @@ -8,7 +8,6 @@ import CheckIcon from '@material-ui/icons/Check'; export default function Checkmark({ value }) { const classes = useStyles(); - // console.log(value); return ( {value ? ( diff --git a/src/components/LandingPage/ResultDetail.js b/src/components/LandingPage/ResultDetail.js index f100f1a..96d7c0d 100644 --- a/src/components/LandingPage/ResultDetail.js +++ b/src/components/LandingPage/ResultDetail.js @@ -173,9 +173,6 @@ const detailStyles = makeStyles(() => ({ }, image: { maxHeight: '200px', - // ['@media (min-height:768px)']: { width: '80%' }, - // ['@media (min-height:1280px)']: { width: '70%' }, - // width: '40%', }, field: { display: 'flex', diff --git a/src/components/LandingPage/SearchResults.js b/src/components/LandingPage/SearchResults.js index 855b8c2..5792d55 100644 --- a/src/components/LandingPage/SearchResults.js +++ b/src/components/LandingPage/SearchResults.js @@ -29,11 +29,7 @@ export default function SearchResults({ data }) { // File Date options const sortOptions = ['Sort Ascending', 'Sort Descending']; - // const rowClick = (e) => { - // console.log('clicked', e.target); - // }; const onFilterClick = (e) => { - // console.log('filter clicked', e.currentTarget.value); setFilterSelection(e.currentTarget.value); }; diff --git a/src/components/LandingPage/TrademarkSearch.js b/src/components/LandingPage/TrademarkSearch.js index 3cb8f68..c351e18 100644 --- a/src/components/LandingPage/TrademarkSearch.js +++ b/src/components/LandingPage/TrademarkSearch.js @@ -75,8 +75,6 @@ export default function TrademarkSearch({ searching, setSearching }) { } }, [searchTerm, searchResults, numberOfRepeatSearches]); - console.log('numberOfRepeatSearches: ', numberOfRepeatSearches); - useEffect(() => {}, [searchResults]); return ( @@ -217,14 +215,14 @@ export const searchBoxStyles = makeStyles(() => ({ }, results: { animation: '$shiftUp-results-mobile 1s', - transform: 'translateY(-48%)', + transform: 'translateY(-24%)', ['@media (min-width:768px)']: { animation: '$shiftUp-results-tablet 1s', - transform: 'translateY(-40%)', + transform: 'translateY(-20%)', }, ['@media (min-width:1280px)']: { animation: '$shiftUp-results-generic 1s', - transform: 'translateY(-20%)', + transform: 'translateY(-10%)', }, // flexGrow: 1, // flexShrink: 0, diff --git a/src/components/RegisterPage/OrganizationForm.js b/src/components/RegisterPage/OrganizationForm.js index ae2873b..80b45ec 100644 --- a/src/components/RegisterPage/OrganizationForm.js +++ b/src/components/RegisterPage/OrganizationForm.js @@ -19,7 +19,7 @@ export default function IndividualForm({ user, setUser }) { event.preventDefault(); history.push('/'); }; - console.log(user); + return (
diff --git a/src/components/TrademarkApplicationPage/ConfirmOrder.js b/src/components/TrademarkApplicationPage/ConfirmOrder.js index e483f35..c01c96c 100644 --- a/src/components/TrademarkApplicationPage/ConfirmOrder.js +++ b/src/components/TrademarkApplicationPage/ConfirmOrder.js @@ -27,8 +27,6 @@ export default function PaymentForm({ navigation.next(); }; - console.log('info: ', info); - return (

Confirm Your Information

diff --git a/src/components/TrademarkApplicationPage/PaymentForm.js b/src/components/TrademarkApplicationPage/PaymentForm.js index 4e9d5e8..7b1bfe9 100644 --- a/src/components/TrademarkApplicationPage/PaymentForm.js +++ b/src/components/TrademarkApplicationPage/PaymentForm.js @@ -170,8 +170,6 @@ export default function PaymentForm({ .then((result) => { paymentToken = result.id; setInfo({ ...info, paymentToken: result.id }); - console.log('result, getPaymentToken: ', result); - console.log('paymentForm, paymentToken: ', paymentToken); submitApplication(paymentToken); }) .then(() => {}) @@ -187,14 +185,10 @@ export default function PaymentForm({ const submitApplication = async (paymentToken) => { setSubmitting(true); let responseSendPayment = await sendPayment(info, paymentToken); - console.log('responseSendPayment: ', responseSendPayment); if (responseSendPayment) { let matterId = await createClioContact(info); - console.log('matterId: ', matterId); if (matterId) { let responseCreateEmail = await createEmail(info, matterId); - // let responseCreateEmail = true; - console.log('responseCreateEmail: ', responseCreateEmail); if (responseCreateEmail) { setInfo({ ...info, @@ -223,8 +217,6 @@ export default function PaymentForm({ navigation.next(); }; - console.log('info: ', info); - return (