File tree Expand file tree Collapse file tree 7 files changed +5
-36
lines changed Expand file tree Collapse file tree 7 files changed +5
-36
lines changed Original file line number Diff line number Diff line change 122
122
"react-final-form" : " ^6.4.0" ,
123
123
"react-router-dom" : " ^5.2.0" ,
124
124
"react-transition-group" : " ^4.4.1" ,
125
- "react-typist" : " ^2.0.5" ,
126
125
"tailwindcss" : " ^2.0.2" ,
127
126
"ts-loader" : " ^8.0.12" ,
128
127
"typescript" : " ^4.1.3"
Original file line number Diff line number Diff line change @@ -4,12 +4,9 @@ import { Constants } from '../utils/constants';
4
4
5
5
import { AllRead } from './AllRead' ;
6
6
7
- jest . mock ( 'react-typist' ) ;
8
-
9
7
describe ( 'components/all-read.tsx' , function ( ) {
10
8
it ( 'should render itself & its children' , function ( ) {
11
9
spyOn ( Constants , 'ALLREAD_EMOJIS' ) ;
12
- spyOn ( Constants , 'ALLREAD_MESSAGES' ) ;
13
10
14
11
const tree = TestRenderer . create ( < AllRead /> ) ;
15
12
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import Typist from 'react-typist' ;
3
2
import { emojify } from 'react-emojione' ;
4
3
5
4
import { Constants } from '../utils/constants' ;
6
5
7
6
export const AllRead = ( ) => {
8
- const message = React . useMemo (
9
- ( ) =>
10
- Constants . ALLREAD_MESSAGES [
11
- Math . floor ( Math . random ( ) * Constants . ALLREAD_MESSAGES . length )
12
- ] ,
13
- [ ]
14
- ) ;
15
-
16
7
const emoji = React . useMemo (
17
8
( ) =>
18
9
Constants . ALLREAD_EMOJIS [
@@ -26,10 +17,8 @@ export const AllRead = () => {
26
17
< h1 className = "text-5xl mb-5" > { emojify ( emoji , { output : 'unicode' } ) } </ h1 >
27
18
28
19
< h2 className = "font-semibold text-xl mb-2 text-semibold" >
29
- < Typist > { message } </ Typist >
20
+ No new notifications.
30
21
</ h2 >
31
-
32
- < div > No new notifications.</ div >
33
22
</ div >
34
23
) ;
35
24
} ;
Original file line number Diff line number Diff line change @@ -11,9 +11,8 @@ exports[`components/all-read.tsx should render itself & its children 1`] = `
11
11
</h1 >
12
12
<h2
13
13
className = " font-semibold text-xl mb-2 text-semibold"
14
- />
15
- <div >
14
+ >
16
15
No new notifications.
17
- </div >
16
+ </h2 >
18
17
</div >
19
18
` ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as React from 'react';
2
2
import * as ReactDOM from 'react-dom' ;
3
3
4
4
import 'tailwindcss/tailwind.css' ;
5
+ import 'nprogress/nprogress.css' ;
5
6
6
7
import { App } from './app' ;
7
8
Original file line number Diff line number Diff line change @@ -13,15 +13,6 @@ export const Constants = {
13
13
// Storage
14
14
STORAGE_KEY : 'gitify-storage' ,
15
15
16
- // Awesome all read messages
17
- ALLREAD_MESSAGES : [
18
- 'Wow! You did it.' ,
19
- "That's amazing!" ,
20
- 'Yes! All read.' ,
21
- 'All gone! Nice work!' ,
22
- 'Yay! Good news.' ,
23
- ] ,
24
-
25
16
ALLREAD_EMOJIS : [
26
17
':wink:' ,
27
18
':tada:' ,
Original file line number Diff line number Diff line change @@ -4944,7 +4944,7 @@ prompts@^2.0.1:
4944
4944
kleur "^3.0.3"
4945
4945
sisteransi "^1.0.4"
4946
4946
4947
- prop-types@^15.5.10, prop-types@^15. 6.2 :
4947
+ prop-types@^15.6.2 :
4948
4948
version "15.7.2"
4949
4949
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
4950
4950
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -5108,13 +5108,6 @@ react-transition-group@^4.4.1:
5108
5108
loose-envify "^1.4.0"
5109
5109
prop-types "^15.6.2"
5110
5110
5111
- react-typist@^2.0.5 :
5112
- version "2.0.5"
5113
- resolved "https://registry.yarnpkg.com/react-typist/-/react-typist-2.0.5.tgz#9830395a73a03e6368e1392ecb98edaa3a648e44"
5114
- integrity sha512-iZCkeqeegO0TlkTMiH2JD1tvMtY9RrXkRylnAI6m8aCVAUUwNzoWTVF7CKLij6THeOMcUDCznLDDvNp55s+YZA==
5115
- dependencies :
5116
- prop-types "^15.5.10"
5117
-
5118
5111
react@=16.13.1 :
5119
5112
version "16.13.1"
5120
5113
resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e"
You can’t perform that action at this time.
0 commit comments