Skip to content

Commit

Permalink
feat(fe): ⚡ add register button
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed Jun 10, 2024
1 parent 7c319b0 commit 86e1a18
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions apps/fe/src/components/pages/home/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useContext, useState } from 'react';
import dynamic from 'next/dynamic';
import Image from 'next/image';
import NextLink from 'next/link';
import { Layout, Menu, Button, Typography, Drawer, Space, Skeleton, Row, Col } from 'antd';
import {
LogoutOutlined,
Expand All @@ -11,6 +12,7 @@ import {
DownOutlined,
UpOutlined,
UnorderedListOutlined,
ArrowRightOutlined,
} from '@ant-design/icons';
import { useIsAuthenticated, useGetIdentity, useLogout } from '@refinedev/core';
import { LoginResponseDto } from '~be/app/auth/dtos';
Expand Down Expand Up @@ -189,9 +191,18 @@ export default function HomePageHeader() {
cursor: 'pointer',
}}
>
<Button href="/login" type="dashed">
Login
</Button>
<Space>
<NextLink href="/login">
<Button type="text" ghost>
Login
</Button>
</NextLink>
<NextLink href="/register">
<Button type="primary" ghost>
Register <ArrowRightOutlined />
</Button>
</NextLink>
</Space>
</div>
)}
</div>
Expand Down

0 comments on commit 86e1a18

Please sign in to comment.