refactor: replace Button with IconButton in Logout component
This commit is contained in:
parent
8ab50b2c5e
commit
2a8dd6a596
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { signOut } from '@/auth';
|
import { signOut } from '@/auth';
|
||||||
import { Button } from '@/components/ui/button';
|
import { IconButton } from '@/components/icon-button';
|
||||||
//import { faDoorOpen } from '@fortawesome/free-solid-svg-icons';
|
import { faDoorOpen } from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
export function Logout() {
|
export function Logout() {
|
||||||
return (
|
return (
|
||||||
|
@ -10,9 +10,9 @@ export function Logout() {
|
||||||
await signOut({ redirectTo: '/login' });
|
await signOut({ redirectTo: '/login' });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button type='submit' variant='destructive' /*icon={faDoorOpen}*/>
|
<IconButton type='submit' variant='destructive' icon={faDoorOpen}>
|
||||||
Sign Out
|
Sign Out
|
||||||
</Button>
|
</IconButton>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue