-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poprawione other_buttons #40
base: main
Are you sure you want to change the base?
Conversation
import { faDownload} from '@fortawesome/free-solid-svg-icons'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 rzecz, to używaj prettier i eslinta, bo widzę, że nie ma tutaj odpowiednich wcięć, odstępów itp. Prettier podczas zapisywania posortuje Ci cały kod wedle schematu narzuconego w konfiguracji, która jest zapisana w projekcie
variant: string; | ||
}; | ||
|
||
const OtherButton = ({variant}:Props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nazwa komponentu nie wskazuje na to co on faktycznie robi, a powinna sugerować to co jest wyświetlane. np. CircularButton -> Okrągły przycisk, a tutaj OtherButton nie wiele nam mówi
return( | ||
<div className='d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm'> | ||
<FontAwesomeIcon icon={faDownload} /> | ||
Pobierz Konfigurację |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tekstu nigdy nie przypisujemy sztywno, zawsze musi to być tłumaczenie
Do pull requesta najlepiej dołączaj screena z tego co zrobiłeś, w tym przypadku screena z tego jak wygląda komponent w aplikacji. Wówczas osoba robiąca review ma dużo prościej zwizualizować sobie efekty |
No description provided.