@@ -7,30 +7,17 @@ import './index.css';
77import * as React from 'react' ;
88import { Row , Col , Avatar , Button } from 'antd' ;
99
10- const exception = [
11- {
12- errorCode : '404' ,
13- errorImg : error404 ,
14- errorDescription : 'Sorry, the page you visited does not exist' ,
15- } ,
16- {
17- errorCode : '401' ,
18- errorImg : error401 ,
19- errorDescription : 'Kardeş, Nere gidiyon' ,
20- } ,
21- {
22- errorCode : '500' ,
23- errorImg : error500 ,
24- errorDescription : 'Kardeş yavas , Sunucu Gitti' ,
25- } ,
26- ] ;
10+
2711
2812class Exception extends React . Component < any , any > {
2913 constructor ( props : any ) {
3014 super ( props ) ;
3115 }
3216
3317 public render ( ) {
18+ const exception = [ { errorCode : '404' , errorImg : error404 , errorDescription : 'Sorry, the page you visited does not exist' } , {
19+ errorCode : '401' , errorImg : error401 , errorDescription : 'Sorry, you dont have access to this page' } ,
20+ { errorCode : '500' , errorImg : error500 , errorDescription : 'Sorry, the server is reporting an error' } ] ;
3421 let params = new URLSearchParams ( this . props . location . search ) ;
3522 const test = params . get ( 'type' ) ;
3623
@@ -46,9 +33,9 @@ class Exception extends React.Component<any, any> {
4633 xs = { { span : 7 , offset : 1 } }
4734 sm = { { span : 7 , offset : 1 } }
4835 md = { { span : 7 , offset : 1 } }
49- lg = { { span : 5 , offset : 8 } }
50- xl = { { span : 5 , offset : 8 } }
51- xxl = { { span : 5 , offset : 8 } }
36+ lg = { { span : 10 , offset : 4 } }
37+ xl = { { span : 10 , offset : 4 } }
38+ xxl = { { span : 10 , offset : 4 } }
5239 >
5340 < Avatar shape = "square" className = { 'errorAvatar' } src = { error ! . errorImg } />
5441 </ Col >
0 commit comments