Skip to content

Commit

Permalink
update/context
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunGovil committed Jan 22, 2023
1 parent ce8f9f8 commit c98f9a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ one stop directory for frequently used commands.
</p>
<h4 align="center">
<a href="https://cmdr.netlify.app/">https://cmdr.netlify.app</a>
</h4>
</h4>

---

Expand All @@ -18,7 +18,8 @@ cmdr is a directory of frequently used commands in daily software development, c

Commands are stored inside the content folder in a JSON file which acts as the current database. You can add new commands by following by following these steps:

- Add it at the end of `content/content.json` file.
- Fork the repository.
- Add a new command at the end of `content/content.json` file.
- Submit a PR.

> **Note** Please follow the below format, and make sure you are not creating multiple copies of same command.
Expand All @@ -28,10 +29,7 @@ Commands are stored inside the content folder in a JSON file which acts as the c
"title": "<COMMAND TITLE>",
"code": "<COMMAND CODE>",
"technology": "<CORE TECHNOLOGY>",
"tags": [
"<TAG ONE>",
"<TAG TWO>"
],
"tags": ["<TAG ONE>", "<TAG TWO>"]
}
```

Expand Down
2 changes: 1 addition & 1 deletion context/NotificationContext.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, createContext, useMemo } from "react";

export const Notification = createContext(null);
export const Notification = createContext();

const NotificationContext = ({ children }: any) => {
const [notification, setNotification] = useState(false);
Expand Down

0 comments on commit c98f9a5

Please sign in to comment.