Skip to content

Commit

Permalink
clean up console.logs; #120
Browse files Browse the repository at this point in the history
  • Loading branch information
veeepi committed May 14, 2021
1 parent ba9acce commit 07cbeed
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 31 deletions.
2 changes: 0 additions & 2 deletions src/components/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/components/Checkmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import CheckIcon from '@material-ui/icons/Check';
export default function Checkmark({ value }) {
const classes = useStyles();

// console.log(value);
return (
<Box boxShadow={5} className={classes.container}>
{value ? (
Expand Down
3 changes: 0 additions & 3 deletions src/components/LandingPage/ResultDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 0 additions & 4 deletions src/components/LandingPage/SearchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
8 changes: 3 additions & 5 deletions src/components/LandingPage/TrademarkSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ export default function TrademarkSearch({ searching, setSearching }) {
}
}, [searchTerm, searchResults, numberOfRepeatSearches]);

console.log('numberOfRepeatSearches: ', numberOfRepeatSearches);

useEffect(() => {}, [searchResults]);

return (
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/RegisterPage/OrganizationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function IndividualForm({ user, setUser }) {
event.preventDefault();
history.push('/');
};
console.log(user);

return (
<div>
<FormControl fullWidth={true}>
Expand Down
2 changes: 0 additions & 2 deletions src/components/TrademarkApplicationPage/ConfirmOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ export default function PaymentForm({
navigation.next();
};

console.log('info: ', info);

return (
<Card className={classes.card}>
<h1 className={classes.title}>Confirm Your Information</h1>
Expand Down
8 changes: 0 additions & 8 deletions src/components/TrademarkApplicationPage/PaymentForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {})
Expand All @@ -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,
Expand Down Expand Up @@ -223,8 +217,6 @@ export default function PaymentForm({
navigation.next();
};

console.log('info: ', info);

return (
<Card className={classes.card}>
<script
Expand Down
3 changes: 0 additions & 3 deletions src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ export const createEmail = async (info, matterId) => {
};

export const sendPayment = async (info, paymentToken) => {
console.log('sendPayment, info: ', info);
console.log('paymentToken: ', paymentToken);

let fnResponse = false;

await fetch(`${BASE}Payment`, {
Expand Down
1 change: 0 additions & 1 deletion src/services/checkmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const searchTrademarks = async (text, password) => {

export const searchTerms = async (text) => {
const url = `${BASE}cipo/GetTermDataByString/${text}`;
console.log('url: ', url);
const response = await fetch(url)
.then((response) => response.json())
.catch((error) => console.log('Error: ', error));
Expand Down
1 change: 0 additions & 1 deletion src/utils/FormValidation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const advancedSearch = (searchText, targetText) => {
var searchWords = searchText.split(' ');
console.log('searchWords: ', searchWords);
let targetTextMatches = true;
searchWords.forEach((word) => {
if (!targetText.toLowerCase().includes(word.toLowerCase())) {
Expand Down

0 comments on commit 07cbeed

Please sign in to comment.