Skip to content

Commit

Permalink
imports cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerholcomb committed Apr 5, 2021
1 parent e05f763 commit b2796a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 3 additions & 1 deletion site/src/fragments/PromptForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export default class PromptForm extends Component {

console.log(this.state)

const results = await axios.post('https://p6ccqa7dik.execute-api.us-east-1.amazonaws.com/dev/sms/prompt', {
const promptEndpoint = 'https://p6ccqa7dik.execute-api.us-east-1.amazonaws.com/dev/sms/prompt'

const results = await axios.post(promptEndpoint, {
phone: this.state['phone'],
});

Expand Down
5 changes: 1 addition & 4 deletions site/src/pages/About.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, { Component } from 'react';
import {
Link,
withRouter
} from 'react-router-dom'
import {withRouter} from 'react-router-dom'
import Nav from '../fragments/Nav'
import PromptForm from '../fragments/PromptForm'

Expand Down
5 changes: 1 addition & 4 deletions site/src/pages/Home.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, { Component } from 'react';
import {
Link,
withRouter
} from 'react-router-dom'
import {withRouter} from 'react-router-dom'
import Nav from '../fragments/Nav'
import PromptForm from '../fragments/PromptForm';

Expand Down

0 comments on commit b2796a2

Please sign in to comment.