Skip to content

Commit 9c46040

Browse files
committedJan 29, 2024
docs: Creates EvaluationForm Component
1 parent af8c009 commit 9c46040

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed
 

‎stories/Introduction/Introduction.mdx

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Meta } from '@storybook/addon-docs';
22

33
import { Alert } from '../../components';
44
import { Header } from '../shared'
5+
import EvaluationForm from '../../stories/shared/EvaluationForm'
56

67
<Meta title="Introduction/GettingStarted" />
78

@@ -39,4 +40,6 @@ yarn add @catho/quantum
3940
import Button from '@catho/quantum/Button';
4041

4142
export default () => <Button>Click here!</Buttom>;
42-
```
43+
```
44+
45+
<EvaluationForm componentName="Introduction" />

‎stories/Typography/Components.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable jsx-a11y/control-has-associated-label */
12
import styled from 'styled-components';
23

34
import { Title, Subtitle, Blockquote } from '../../components/GlobalStyle';
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import Accordion from '../../../components/Accordion';
2+
3+
const urlGenerator = (componentName) =>
4+
`https://docs.google.com/forms/d/e/1FAIpQLSewdS_VhSt_JSFOxiuiIc-auEj0MQwn_P_WiXYhAEAE1DqJhg/viewform?entry.1112120969=${componentName}`;
5+
6+
const EvaluationForm = ({ componentName }) => (
7+
<Accordion
8+
items={[
9+
{
10+
content: (
11+
<ul>
12+
<li>
13+
<iframe
14+
title="Rate our Documentation"
15+
src={`${urlGenerator(componentName)}`}
16+
width="992"
17+
height="600"
18+
frameBorder="0"
19+
marginHeight="0"
20+
marginWidth="0"
21+
>
22+
Carregando…
23+
</iframe>
24+
</li>
25+
</ul>
26+
),
27+
opened: true,
28+
title: '⭐⭐⭐⭐⭐ Rate our Documentation',
29+
},
30+
]}
31+
/>
32+
);
33+
34+
export default EvaluationForm;

0 commit comments

Comments
 (0)