File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 7777 font-size : 18px !important ;
7878}
7979
80+ ::-webkit-scrollbar {
81+ width : 5px ;
82+ }
83+
84+ ::-webkit-scrollbar-track-piece {
85+ background-color : #FFF ;
86+ }
87+
88+ ::-webkit-scrollbar-thumb {
89+ background-color : #CBCBCB ;
90+ outline : 2px solid #FFF ;
91+ outline-offset : -2px ;
92+ border : .1px solid #B7B7B7 ;
93+ }
94+
95+ ::-webkit-scrollbar-thumb :hover {
96+ background-color : #909090 ;
97+ }
98+
8099@media (max-width : 800px )
81100{
82101 pre {
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import React , { Suspense } from 'react' ;
22import './App.scss' ;
33import ReactGA from 'react-ga' ;
44import { Docs } from './docs/Docs' ;
5- import { UI } from './ui-demo/UI' ;
65
76ReactGA . initialize ( "UA-144490437-1" ) ;
87ReactGA . pageview ( window . location . pathname + window . location . search ) ;
98
109const App : React . FC = ( ) => {
1110 if ( window . location . hash === "#ui-demo" )
1211 {
13- return < UI />
12+ const UI = React . lazy ( ( ) => import ( './ui-demo/UI' ) . then ( ( { UI } ) => ( { default : UI } ) ) ) ;
13+ return < Suspense fallback = { < Loading /> } > < UI /> </ Suspense >
1414 }
1515
1616 return < Docs />
1717}
1818
19+ const Loading = ( ) => ( < span /> )
20+
1921export default App ;
You can’t perform that action at this time.
0 commit comments