|
4 | 4 |
|
5 | 5 | ## Type parameters
|
6 | 6 |
|
7 |
| -▪ **C**: *StaticContext* |
| 7 | +▪ **C**: _StaticContext_ |
8 | 8 |
|
9 | 9 | ▪ **S**
|
10 | 10 |
|
11 | 11 | ## Hierarchy
|
12 | 12 |
|
13 |
| -* RouteComponentProps‹any› |
| 13 | +- RouteComponentProps‹any› |
14 | 14 |
|
15 |
| -* [AuthenticatedRoute](authenticatedroute.md) |
| 15 | +- [AuthenticatedRoute](authenticatedroute.md) |
16 | 16 |
|
17 |
| - ↳ **AuthenticatedRouteProps** |
| 17 | + ↳ **AuthenticatedRouteProps** |
18 | 18 |
|
19 | 19 | ## Index
|
20 | 20 |
|
21 | 21 | ### Properties
|
22 | 22 |
|
23 |
| -* [history](authenticatedrouteprops.md#history) |
24 |
| -* [isAuthenticated](authenticatedrouteprops.md#isauthenticated) |
25 |
| -* [location](authenticatedrouteprops.md#location) |
26 |
| -* [match](authenticatedrouteprops.md#match) |
27 |
| -* [redirectToIfUnauthenticated](authenticatedrouteprops.md#optional-redirecttoifunauthenticated) |
28 |
| -* [render](authenticatedrouteprops.md#render) |
29 |
| -* [route](authenticatedrouteprops.md#route) |
30 |
| -* [staticContext](authenticatedrouteprops.md#optional-staticcontext) |
| 23 | +- [history](authenticatedrouteprops.md#history) |
| 24 | +- [isAuthenticated](authenticatedrouteprops.md#isauthenticated) |
| 25 | +- [location](authenticatedrouteprops.md#location) |
| 26 | +- [match](authenticatedrouteprops.md#match) |
| 27 | +- [redirectToIfUnauthenticated](authenticatedrouteprops.md#optional-redirecttoifunauthenticated) |
| 28 | +- [render](authenticatedrouteprops.md#render) |
| 29 | +- [route](authenticatedrouteprops.md#route) |
| 30 | +- [staticContext](authenticatedrouteprops.md#optional-staticcontext) |
31 | 31 |
|
32 | 32 | ## Properties
|
33 | 33 |
|
34 |
| -### history |
| 34 | +### history |
35 | 35 |
|
36 |
| -• **history**: *History‹S›* |
| 36 | +• **history**: _History‹S›_ |
37 | 37 |
|
38 |
| -*Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[history](authenticatedrouteprops.md#history)* |
| 38 | +_Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[history](authenticatedrouteprops.md#history)_ |
39 | 39 |
|
40 | 40 | Defined in node_modules/@types/react-router/index.d.ts:75
|
41 | 41 |
|
42 |
| -___ |
| 42 | +--- |
43 | 43 |
|
44 |
| -### isAuthenticated |
| 44 | +### isAuthenticated |
45 | 45 |
|
46 |
| -• **isAuthenticated**: *boolean* |
| 46 | +• **isAuthenticated**: _boolean_ |
47 | 47 |
|
48 |
| -*Inherited from [AuthenticatedRoute](authenticatedroute.md).[isAuthenticated](authenticatedroute.md#isauthenticated)* |
| 48 | +_Inherited from [AuthenticatedRoute](authenticatedroute.md).[isAuthenticated](authenticatedroute.md#isauthenticated)_ |
49 | 49 |
|
50 |
| -*Defined in [src/interfaces/authenticated-route.ts:12](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/0725a3f/src/interfaces/authenticated-route.ts#L12)* |
| 50 | +_Defined in [src/interfaces/authenticated-route.ts:12](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/93d00e6/src/interfaces/authenticated-route.ts#L12)_ |
51 | 51 |
|
52 | 52 | Flag to determine whether the current user is authenticated or not.
|
53 | 53 |
|
54 | 54 | **`memberof`** AuthenticatedRouteProps
|
55 | 55 |
|
56 |
| -___ |
| 56 | +--- |
57 | 57 |
|
58 |
| -### location |
| 58 | +### location |
59 | 59 |
|
60 |
| -• **location**: *Location‹S›* |
| 60 | +• **location**: _Location‹S›_ |
61 | 61 |
|
62 |
| -*Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[location](authenticatedrouteprops.md#location)* |
| 62 | +_Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[location](authenticatedrouteprops.md#location)_ |
63 | 63 |
|
64 | 64 | Defined in node_modules/@types/react-router/index.d.ts:76
|
65 | 65 |
|
66 |
| -___ |
| 66 | +--- |
67 | 67 |
|
68 |
| -### match |
| 68 | +### match |
69 | 69 |
|
70 |
| -• **match**: *match‹any›* |
| 70 | +• **match**: _match‹any›_ |
71 | 71 |
|
72 |
| -*Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[match](authenticatedrouteprops.md#match)* |
| 72 | +_Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[match](authenticatedrouteprops.md#match)_ |
73 | 73 |
|
74 | 74 | Defined in node_modules/@types/react-router/index.d.ts:77
|
75 | 75 |
|
76 |
| -___ |
| 76 | +--- |
77 | 77 |
|
78 | 78 | ### `Optional` redirectToIfUnauthenticated
|
79 | 79 |
|
80 |
| -• **redirectToIfUnauthenticated**? : *undefined | string* |
| 80 | +• **redirectToIfUnauthenticated**? : _undefined | string_ |
81 | 81 |
|
82 |
| -*Inherited from [AuthenticatedRoute](authenticatedroute.md).[redirectToIfUnauthenticated](authenticatedroute.md#optional-redirecttoifunauthenticated)* |
| 82 | +_Inherited from [AuthenticatedRoute](authenticatedroute.md).[redirectToIfUnauthenticated](authenticatedroute.md#optional-redirecttoifunauthenticated)_ |
83 | 83 |
|
84 |
| -*Defined in [src/interfaces/authenticated-route.ts:20](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/0725a3f/src/interfaces/authenticated-route.ts#L20)* |
| 84 | +_Defined in [src/interfaces/authenticated-route.ts:20](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/93d00e6/src/interfaces/authenticated-route.ts#L20)_ |
85 | 85 |
|
86 | 86 | Route to redirect to if the current user is not authenticated.
|
87 | 87 |
|
88 | 88 | **`memberof`** UnauthenticatedRedirectProps
|
89 | 89 |
|
90 |
| -___ |
| 90 | +--- |
91 | 91 |
|
92 |
| -### render |
| 92 | +### render |
93 | 93 |
|
94 |
| -• **render**: *function* |
| 94 | +• **render**: _function_ |
95 | 95 |
|
96 |
| -*Defined in [src/components/routing/authenticated-route.tsx:14](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/0725a3f/src/components/routing/authenticated-route.tsx#L14)* |
| 96 | +_Defined in [src/components/routing/authenticated-route.tsx:14](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/93d00e6/src/components/routing/authenticated-route.tsx#L14)_ |
97 | 97 |
|
98 | 98 | #### Type declaration:
|
99 | 99 |
|
100 |
| -▸ (`props`: any): *any* |
| 100 | +▸ (`props`: any): _any_ |
101 | 101 |
|
102 | 102 | **Parameters:**
|
103 | 103 |
|
104 |
| -Name | Type | |
105 |
| ------- | ------ | |
106 |
| -`props` | any | |
| 104 | +| Name | Type | |
| 105 | +| ------- | ---- | |
| 106 | +| `props` | any | |
107 | 107 |
|
108 |
| -___ |
| 108 | +--- |
109 | 109 |
|
110 |
| -### route |
| 110 | +### route |
111 | 111 |
|
112 |
| -• **route**: *[RouteDefinition](routedefinition.md)* |
| 112 | +• **route**: _[RouteDefinition](routedefinition.md)_ |
113 | 113 |
|
114 |
| -*Defined in [src/components/routing/authenticated-route.tsx:13](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/0725a3f/src/components/routing/authenticated-route.tsx#L13)* |
| 114 | +_Defined in [src/components/routing/authenticated-route.tsx:13](https://github.com/AndcultureCode/AndcultureCode.JavaScript.React/blob/93d00e6/src/components/routing/authenticated-route.tsx#L13)_ |
115 | 115 |
|
116 |
| -___ |
| 116 | +--- |
117 | 117 |
|
118 | 118 | ### `Optional` staticContext
|
119 | 119 |
|
120 |
| -• **staticContext**? : *C* |
| 120 | +• **staticContext**? : _C_ |
121 | 121 |
|
122 |
| -*Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[staticContext](authenticatedrouteprops.md#optional-staticcontext)* |
| 122 | +_Inherited from [AuthenticatedRouteProps](authenticatedrouteprops.md).[staticContext](authenticatedrouteprops.md#optional-staticcontext)_ |
123 | 123 |
|
124 | 124 | Defined in node_modules/@types/react-router/index.d.ts:78
|
0 commit comments