-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from urbint/mr/add-doc-link
Creating documentation component link
- Loading branch information
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/components/DocumentationLink/DocumentationLink.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.description { | ||
font-size: 16px; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/components/DocumentationLink/DocumentationLink.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { render, screen } from "@testing-library/react"; | ||
|
||
import { DocumentationLink } from "./DocumentationLink"; | ||
|
||
describe(DocumentationLink.name, () => { | ||
it("renders correctly text and link", () => { | ||
render(<DocumentationLink />); | ||
const docLink = screen.getByRole("link"); | ||
|
||
expect(screen.getByText("Documentation")).toBeInTheDocument(); | ||
expect(docLink).toHaveAttribute( | ||
"href", | ||
"https://github.com/urbint/fe-app-project#fe-template-app" | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import styles from "./DocumentationLink.module.css"; | ||
|
||
const DocumentationLink = () => { | ||
return ( | ||
<> | ||
<p className={styles.description}> | ||
For more information about folder structure, best practices and tools | ||
used check this link for more information:{" "} | ||
</p> | ||
<a href="https://github.com/urbint/fe-app-project#fe-template-app"> | ||
Documentation | ||
</a> | ||
</> | ||
); | ||
}; | ||
|
||
export { DocumentationLink }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./DocumentationLink"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./WelcomeMessage"; | ||
export * from "./DocumentationLink"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters