-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14e9ad3
commit 29237dd
Showing
26 changed files
with
967 additions
and
803 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v22.4.0 | ||
v22 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { APIOperation } from '@/src/services/api-services/common'; | ||
import { makeRequest } from '@/src/services/api-services/request'; | ||
import { RequestResponse } from '@/src/types/request-response.type'; | ||
import { UserResponse } from '@/src/types/response.types'; | ||
|
||
export const getUser = async (): Promise<RequestResponse<UserResponse>> => { | ||
const res = await makeRequest<APIOperation.GET_USER, UserResponse>({ | ||
op: APIOperation.GET_USER, | ||
}); | ||
return res; | ||
}; |
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Link as StyledLink, LinkProps as StyledLinkProps } from '@nextui-org/react'; | ||
import { useRouter } from 'next/navigation'; | ||
import { FunctionComponent, ReactElement } from 'react'; | ||
|
||
interface LinkProps extends StyledLinkProps { | ||
href: string; | ||
} | ||
|
||
const Link: FunctionComponent<LinkProps> = ({ href, ...props }): ReactElement => { | ||
const router = useRouter(); | ||
|
||
return <StyledLink onClick={() => router.push(href)} {...props} />; | ||
}; | ||
|
||
export default Link; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
'use client'; | ||
import { | ||
Button, | ||
Link, | ||
Navbar, | ||
NavbarBrand, | ||
NavbarContent, | ||
NavbarItem, | ||
NavbarMenu, | ||
NavbarMenuItem, | ||
NavbarMenuToggle, | ||
} from '@nextui-org/react'; | ||
import Image from 'next/image'; | ||
import { FunctionComponent, ReactElement, useState } from 'react'; | ||
|
||
const Nav: FunctionComponent = (): ReactElement => { | ||
const [isMenuOpen, setIsMenuOpen] = useState(false); | ||
|
||
const menuItems = [ | ||
'Profile', | ||
'Dashboard', | ||
'Activity', | ||
'Analytics', | ||
'System', | ||
'Deployments', | ||
'My Settings', | ||
'Team Settings', | ||
'Help & Feedback', | ||
'Log Out', | ||
]; | ||
|
||
return ( | ||
<Navbar onMenuOpenChange={setIsMenuOpen}> | ||
<NavbarContent> | ||
<NavbarMenuToggle aria-label={isMenuOpen ? 'Close menu' : 'Open menu'} className="sm:hidden" /> | ||
<NavbarBrand> | ||
<Image src="/logo.svg" alt="Easyflow" width={40} height={40} /> | ||
</NavbarBrand> | ||
</NavbarContent> | ||
|
||
<NavbarContent className="hidden gap-4 sm:flex" justify="center"> | ||
<NavbarItem> | ||
<Link color="foreground" href="#"> | ||
Features | ||
</Link> | ||
</NavbarItem> | ||
<NavbarItem isActive> | ||
<Link href="#" aria-current="page"> | ||
Customers | ||
</Link> | ||
</NavbarItem> | ||
<NavbarItem> | ||
<Link color="foreground" href="#"> | ||
Integrations | ||
</Link> | ||
</NavbarItem> | ||
</NavbarContent> | ||
<NavbarContent justify="end"> | ||
<NavbarItem className="hidden lg:flex"> | ||
<Link href="#">Login</Link> | ||
</NavbarItem> | ||
<NavbarItem> | ||
<Button as={Link} color="primary" href="#" variant="flat"> | ||
Sign Up | ||
</Button> | ||
</NavbarItem> | ||
</NavbarContent> | ||
<NavbarMenu> | ||
{menuItems.map((item, index) => ( | ||
<NavbarMenuItem key={`${item}-${index}`}> | ||
<Link | ||
color={index === 2 ? 'primary' : index === menuItems.length - 1 ? 'danger' : 'foreground'} | ||
className="w-full" | ||
href="#" | ||
size="lg" | ||
> | ||
{item} | ||
</Link> | ||
</NavbarMenuItem> | ||
))} | ||
</NavbarMenu> | ||
</Navbar> | ||
); | ||
}; | ||
|
||
export default Nav; |
Oops, something went wrong.