Skip to content

Commit 440b5d2

Browse files
committed
refactor(tsx): convert context to ts
1 parent 760b8f5 commit 440b5d2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/context.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/context.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { createContext } from 'react';
2+
import { UserContextType } from './ui/views/RepoDetails/RepoDetails';
3+
4+
export const UserContext = createContext<UserContextType>({
5+
user: {
6+
admin: false,
7+
},
8+
});

0 commit comments

Comments
 (0)