Skip to content

Commit

Permalink
Fix: renamed .tsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Aug 30, 2024
1 parent 0356e59 commit 4ab07d7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const DesktopNav = () => {
);
};

const DesktopSubNav = ({ label, href, subLabel }: NavItem) => {
const DesktopSubNav = ({ label, href, subLabel }) => {
return (
<Box
as="a"
Expand Down Expand Up @@ -249,7 +249,7 @@ const MobileNav = () => {
);
};

const MobileNavItem = ({ label, children, href }: NavItem) => {
const MobileNavItem = ({ label, children, href }) => {
const { isOpen, onToggle } = useDisclosure();

return (
Expand Down Expand Up @@ -327,15 +327,15 @@ const MobileNavItem = ({ label, children, href }: NavItem) => {
);
};

interface NavItem {
label: string;
subLabel?: string;
children?: Array<NavItem>;
href?: string;
key?: number;
}
// interface NavItem {
// label: string;
// subLabel?: string;
// children?: Array<NavItem>;
// href?: string;
// key?: number;
// }

const NAV_ITEMS: Array<NavItem> = [
const NAV_ITEMS = [
{
key: 1,
label: 'Product',
Expand Down Expand Up @@ -391,6 +391,17 @@ const NAV_ITEMS: Array<NavItem> = [
];

const SomeButtons = () => {
const handleLogin = async () => {
loginWithRedirect({
authorizationParams: {
audience: process.env.NEXT_PUBLIC_AUTH0_AUDIENCE,
},
});
};
const logoSrc = useBreakpointValue({
base: logo,
md: logo_text,
});
return (
<Stack
flex={{ base: 1, md: 0 }}
Expand Down Expand Up @@ -419,6 +430,7 @@ const SomeButtons = () => {
_hover={{
bg: 'brand.black_v1_border',
}}
onClick={handleLogin}
>
Sign In
</Button>
Expand Down

0 comments on commit 4ab07d7

Please sign in to comment.