Skip to content

Commit

Permalink
Merge pull request #61 from infoshareacademy/Alert
Browse files Browse the repository at this point in the history
dodanie alertu na wyslanie przepisu
  • Loading branch information
maciejlangowski authored Sep 6, 2020
2 parents 0279b48 + 806dbd3 commit 6f566bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import Auth from "../Auth";
import { DATABASE_URL } from "../../index";
import firebase from "firebase";



const initialState = {
file: '',
name: "",
Expand Down Expand Up @@ -79,6 +81,10 @@ class Form extends React.Component {
});
};

handleOnClick = () => {
alert('Dziękujemy za wysłanie przepisu')
}

render() {
return (
<Auth>
Expand Down Expand Up @@ -174,9 +180,11 @@ class Form extends React.Component {
type="submit"
variant="contained"
color="primary"
onClick={this.handleOnClick}
>
Prześlij przepis
</Button>

</div>
</form>
</div>
Expand Down

0 comments on commit 6f566bb

Please sign in to comment.