@@ -4,7 +4,13 @@ menu: API
44route : /api/create-canal
55---
66
7- # createCanal
7+ # [ deprecated] createCanal
8+
9+ import { Warning } from ' components/Warning' ;
10+
11+ <Warning >
12+ This API is deprecated and will be removed in the next major release; i.e. in ` react-gondola ` 2.
13+ </Warning >
814
915` type: <Authorizations = { [K in Stop['name']]?: boolean }>(stopsList: Stop[]): ComponentType<CanalComponentProps<Authorizations>> `
1016
@@ -55,15 +61,15 @@ MobX Strem Listener of list of local Stops. All full screen stops are filtered o
5561Link your pages in a canal.
5662
5763``` tsx
58- import React from " react" ;
59- import { createCanal } from " react-gondola" ;
60- import { FirstName } from " ./FirstName" ;
61- import { LastName } from " ./LastName" ;
62- import { Confirm } from " ./Confirm" ;
64+ import React from ' react' ;
65+ import { createCanal } from ' react-gondola' ;
66+ import { FirstName } from ' ./FirstName' ;
67+ import { LastName } from ' ./LastName' ;
68+ import { Confirm } from ' ./Confirm' ;
6369
6470export const SignInCanal = createCanal ([
65- { name: " firstName" , Component: FirstName },
66- { name: " lastName" , Component: LastName },
67- { name: " confirm" , Component: Confirm , isFullScreen: true }
71+ { name: ' firstName' , Component: FirstName },
72+ { name: ' lastName' , Component: LastName },
73+ { name: ' confirm' , Component: Confirm , isFullScreen: true },
6874]);
6975```
0 commit comments