@@ -89,64 +89,113 @@ export const ViewAlert = (): JSX.Element => {
89
89
</ Alert >
90
90
</ ListComponent >
91
91
92
- < Code
93
- text = '<Alert state="info" buttonLink buttonText="Click me" onClick={() => {}}> Texto </Alert>
94
- <Alert state="success" buttonLink buttonText="Click me" onClick={() => {}}> Texto </Alert>
95
- <Alert state="error" buttonLink buttonText="Click me" onClick={() => {}}> Texto </Alert>
96
- <Alert state="warning" buttonLink buttonText="Click me" onClick={() => {}}> Texto </Alert>'
97
- />
98
- < MyTittle > Alertas con botón link y boton primario</ MyTittle >
92
+ < MyTittle > Alertas con botón link y boton primario,</ MyTittle >
99
93
< MyText >
100
94
Esta alerta recibe un state de alerta entre: < code > warning, error, success, info </ code > .
101
- Adicionalmente recibe un link al final del texto y un botón primario.
95
+ Adicionalmente recibe un link al final del texto y un botón primario. si se quiere que el
96
+ componente ocupe todo el ancho de la pantalla se debe agregar el < code > fullWidth</ code > { ' ' }
97
+ mencionado en los types.
102
98
</ MyText >
103
99
< ListComponent >
104
100
< Alert
105
101
state = "info"
106
- buttonText = "Ir al registro "
102
+ buttonText = "Register "
107
103
onClick = { ( ) => { } }
108
104
onClickLink = { ( ) => { } }
109
- endTextLink = "visita el Centro de ayuda"
105
+ endTextLink = "Second link"
106
+ fullWidth
110
107
>
111
- < b > Para realizar tus evaluaciones monitoreadas debes registrarte en SMOWL. </ b > . Es
112
- importante que lo hagas < b > al menos 72 horas antes de tu primera evaluacion </ b > para
113
- evitar problemas o contratiempos. Para mas informacion,
108
+ Lorem < b > ipsum dolor </ b > , sit amet consectetur adipisicing elit. Quia nemo vel facere
109
+ itaque, molestiae expedita quidem < b > provident cumque voluptas accusamus </ b > explicabo
110
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
114
111
</ Alert >
115
112
< Alert
116
113
state = "success"
117
- buttonText = "Ir al registro "
114
+ buttonText = "Register "
118
115
onClick = { ( ) => { } }
119
116
onClickLink = { ( ) => { } }
120
- endTextLink = "visita el Centro de ayuda"
117
+ endTextLink = "Second link"
118
+ fullWidth
121
119
>
122
- < b > Para realizar tus evaluaciones monitoreadas debes registrarte en SMOWL. </ b > . Es
123
- importante que lo hagas < b > al menos 72 horas antes de tu primera evaluacion </ b > para
124
- evitar problemas o contratiempos. Para mas informacion,
120
+ Lorem < b > ipsum dolor </ b > , sit amet consectetur adipisicing elit. Quia nemo vel facere
121
+ itaque, molestiae expedita quidem < b > provident cumque voluptas accusamus </ b > explicabo
122
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
125
123
</ Alert >
126
124
< Alert
127
125
state = "error"
128
- buttonText = "Ir al registro "
126
+ buttonText = "Register "
129
127
onClick = { ( ) => { } }
130
128
onClickLink = { ( ) => { } }
131
- endTextLink = "visita el Centro de ayuda"
129
+ endTextLink = "Second link"
130
+ fullWidth
132
131
>
133
- < b > Para realizar tus evaluaciones monitoreadas debes registrarte en SMOWL. </ b > . Es
134
- importante que lo hagas < b > al menos 72 horas antes de tu primera evaluacion </ b > para
135
- evitar problemas o contratiempos. Para mas informacion,
132
+ Lorem < b > ipsum dolor </ b > , sit amet consectetur adipisicing elit. Quia nemo vel facere
133
+ itaque, molestiae expedita quidem < b > provident cumque voluptas accusamus </ b > explicabo
134
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
136
135
</ Alert >
137
136
< Alert
138
137
state = "warning"
139
- buttonText = "Ir al registro "
138
+ buttonText = "Register "
140
139
onClick = { ( ) => { } }
141
140
onClickLink = { ( ) => { } }
142
- endTextLink = "visita el Centro de ayuda "
141
+ endTextLink = "Second link "
143
142
fullWidth
144
143
>
145
- < b > Para realizar tus evaluaciones monitoreadas debes registrarte en SMOWL. </ b > . Es
146
- importante que lo hagas < b > al menos 72 horas antes de tu primera evaluacion </ b > para
147
- evitar problemas o contratiempos. Para mas informacion,
144
+ Lorem < b > ipsum dolor </ b > , sit amet consectetur adipisicing elit. Quia nemo vel facere
145
+ itaque, molestiae expedita quidem < b > provident cumque voluptas accusamus </ b > explicabo
146
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
148
147
</ Alert >
149
148
</ ListComponent >
149
+ < Code
150
+ text = { `<Alert
151
+ state="info"
152
+ buttonText="Register"
153
+ onClick={() => {}}
154
+ onClickLink={() => {}}
155
+ endTextLink="Second link"
156
+ fullWidth
157
+ >
158
+ Lorem <b>ipsum dolor</b>, sit amet consectetur adipisicing elit. Quia nemo vel facere
159
+ itaque, molestiae expedita quidem <b>provident cumque voluptas accusamus</b> explicabo
160
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
161
+ </Alert>
162
+ <Alert
163
+ state="success"
164
+ buttonText="Register"
165
+ onClick={() => {}}
166
+ onClickLink={() => {}}
167
+ endTextLink="Second link"
168
+ fullWidth
169
+ >
170
+ Lorem <b>ipsum dolor</b>, sit amet consectetur adipisicing elit. Quia nemo vel facere
171
+ itaque, molestiae expedita quidem <b>provident cumque voluptas accusamus</b> explicabo
172
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
173
+ </Alert>
174
+ <Alert
175
+ state="error"
176
+ buttonText="Register"
177
+ onClick={() => {}}
178
+ onClickLink={() => {}}
179
+ endTextLink="Second link"
180
+ fullWidth
181
+ >
182
+ Lorem <b>ipsum dolor</b>, sit amet consectetur adipisicing elit. Quia nemo vel facere
183
+ itaque, molestiae expedita quidem <b>provident cumque voluptas accusamus</b> explicabo
184
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
185
+ </Alert>
186
+ <Alert
187
+ state="warning"
188
+ buttonText="Register"
189
+ onClick={() => {}}
190
+ onClickLink={() => {}}
191
+ endTextLink="Second link"
192
+ fullWidth
193
+ >
194
+ Lorem <b>ipsum dolor</b>, sit amet consectetur adipisicing elit. Quia nemo vel facere
195
+ itaque, molestiae expedita quidem <b>provident cumque voluptas accusamus</b> explicabo
196
+ iure aspernatur optio amet illo maxime, totam incidunt maiores.
197
+ </Alert>` }
198
+ />
150
199
< MyTittle > Types de Alert</ MyTittle >
151
200
< MyText > Tipos implementados en el Alert</ MyText >
152
201
< Code
0 commit comments