diff --git a/part2/phonebook/db.json b/part2/phonebook/db.json index f80f366..82b70a0 100644 --- a/part2/phonebook/db.json +++ b/part2/phonebook/db.json @@ -19,6 +19,16 @@ "name": "Mary Poppendieck", "number": "39-23-6423122", "id": "4" + }, + { + "id": "1352", + "name": "rashmika1", + "number": "122" + }, + { + "id": "c680", + "name": "rashmika1", + "number": "444" } ] } \ No newline at end of file diff --git a/part2/phonebook/src/App.jsx b/part2/phonebook/src/App.jsx index 2fdd05e..89a9ddc 100644 --- a/part2/phonebook/src/App.jsx +++ b/part2/phonebook/src/App.jsx @@ -6,13 +6,22 @@ import personService from './services/persons' import axios from 'axios' -const Notification = ({ message }) => { +const Notification = ( {message,givencolor} ) => { if (message === null || message=== '') { return null } + const notificationStyle={ + color: givencolor, + background: 'lightgrey', + fontSize: 20, + borderStyle: 'solid', + borderRadius: 5, + padding: 10, + marginBottom: 10, + } return ( -