Open
Conversation
devmentor-pl
approved these changes
Nov 28, 2025
Owner
devmentor-pl
left a comment
There was a problem hiding this comment.
Sandro,
Zadanka prezentują się super! 👍
Zostawiłem Ci zadanie dodatkowe ("variant") :)
|
|
||
| import Alert from './../src/components/Alert'; | ||
| import { Row, Col, Alert as RBAlert } from 'react-bootstrap'; | ||
| const theme = { |
Owner
There was a problem hiding this comment.
Można też trzymać w osobnym pliku :)
|
|
||
| import Button from './../src/components/Button'; | ||
| import { Row, Col, Button as RBButton } from 'react-bootstrap'; | ||
| export const theme = { |
Owner
There was a problem hiding this comment.
Można było wykorzystać jeden plik to wszystkich elementów ;)
| </Col> | ||
| </Row> | ||
| ); | ||
| }; |
| </Col> | ||
| </Row> | ||
| ); | ||
| }; |
| import { Row, Col, Card as RBCard, Button as RBButton } from "react-bootstrap"; | ||
| import Button from "../src/components/Button/Button"; | ||
| import { ThemeProvider } from "styled-components"; | ||
| import { theme } from "../02/Task02"; |
| }; | ||
|
|
||
| export default Button; | ||
|
No newline at end of file |
| ? theme.colors.primaryText | ||
| : theme.colors.secondaryText}; | ||
| background-color: ${({ variant, theme }) => | ||
| variant === "primary" ? theme.colors.primary : theme.colors.secondary}; |
Owner
There was a problem hiding this comment.
Czy da się zrobić to jakoś bardziej dynamicznie? Co jeśli tych "wariantów" jest 6? Nie będziemy każdego wariantu robić "na piechotę". Jak to zrobić dynamicznie?
| border-radius: 0.25rem; | ||
| overflow: hidden; | ||
| background-color: #fff; | ||
| `; No newline at end of file |
| ); | ||
| }; | ||
|
|
||
| export default Tabs; No newline at end of file |
|
|
||
| export const TabPanel = styled.div` | ||
| padding: 0.75rem 0; | ||
| `; No newline at end of file |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.