fix(dashboard-v2): properly align switch toggle & label
This commit is contained in:
parent
8422a6770c
commit
4fa8dac4b4
|
@ -60,7 +60,7 @@ export const Switch = ({ children, defaultChecked, labelClassName, onChange, ...
|
||||||
<Toggle>
|
<Toggle>
|
||||||
<TogglePin $checked={checked} />
|
<TogglePin $checked={checked} />
|
||||||
</Toggle>
|
</Toggle>
|
||||||
{children}
|
<div className="-mt-0.5">{children}</div>
|
||||||
</Label>
|
</Label>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
|
|
@ -14,9 +14,7 @@ const NotificationsPage = () => {
|
||||||
<section>
|
<section>
|
||||||
{/* TODO: saves on change */}
|
{/* TODO: saves on change */}
|
||||||
<Switch onChange={console.info.bind(console)} labelClassName="!items-start flex-col md:flex-row">
|
<Switch onChange={console.info.bind(console)} labelClassName="!items-start flex-col md:flex-row">
|
||||||
<span className="ml-2">
|
|
||||||
I agreee to get the latest news, updates and special offers delivered to my email inbox.
|
I agreee to get the latest news, updates and special offers delivered to my email inbox.
|
||||||
</span>
|
|
||||||
</Switch>
|
</Switch>
|
||||||
</section>
|
</section>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
Reference in New Issue