Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

poprawione other_buttons #40

wants to merge 1 commit into from

Conversation

Krysmal
Copy link

@Krysmal Krysmal commented May 20, 2023

No description provided.

import { faDownload} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';


Copy link
Contributor

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) => {
Copy link
Contributor

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ę
Copy link
Contributor

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

@wiktorrudzki
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants