Last active
August 27, 2019 11:50
-
-
Save RubaXa/623025055d76df5e87b0471ee6ed8010 to your computer and use it in GitHub Desktop.
TrueSlots. Usage.
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
// Нам больше не нужен `header` | |
<LoginForm | |
header={null} | |
/> | |
// Добавляем «крестик» и кнопку «Отмена» | |
<LoginForm | |
header={(parent) => <> | |
{parent()} | |
<Icon name="cross" onClick={...}/> | |
</>} | |
controls={(parent) => <> | |
{parent()} | |
<Bttton kind="secondary" onClick={...}/> | |
</>} | |
/> | |
// Неожиданно вставлчем промо-информер после Email и Password | |
<LoginForm>{ | |
(parent) => <> | |
{parent()} | |
<PromoInformer /> | |
</> | |
}</LoginForm> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment