generated from damla/nextjs-dApp-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from damla/dev
- Loading branch information
Showing
7 changed files
with
319 additions
and
88 deletions.
There are no files selected for viewing
54 changes: 31 additions & 23 deletions
54
src/components/layouts/Dashboard/modules/Footer/Footer.tsx
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,32 +1,40 @@ | ||
import Link from 'next/link'; | ||
import { useMoralis } from 'react-moralis'; | ||
import { APP_NAME } from '../../../../../utils/constants'; | ||
import { LanguageSelector } from '../../../../common'; | ||
import Icon, { Icons } from '../../../../common/Icon/Icon'; | ||
|
||
const Footer = () => ( | ||
<footer className="p-4 bg-white shadow md:px-6 md:py-8 dark:bg-gray-800"> | ||
<div className="sm:flex sm:items-center sm:justify-between"> | ||
<ul className="flex items-center mb-6 text-sm sm:mb-0"> | ||
const Footer = () => { | ||
const { logout } = useMoralis(); | ||
|
||
return ( | ||
<footer className="p-4 bg-white shadow md:px-6 md:py-5 dark:bg-gray-800"> | ||
<div className="sm:flex sm:items-center sm:justify-between"> | ||
<ul className="flex items-center mb-6 text-sm sm:mb-0"> | ||
<Link href="/"> | ||
<a | ||
onClick={logout} | ||
className="hover:cursor-pointer inline-flex sm:mb-0 text-gray-800 hover:opacity-80 text-xl font-bold items-center" | ||
> | ||
<Icon icon={Icons.ETHEREUM} alt="ethereum" /> | ||
{APP_NAME} | ||
</a> | ||
</Link> | ||
</ul> | ||
<ul className="flex flex-wrap items-center mb-6 text-sm text-gray-500 sm:mb-0 dark:text-gray-400"> | ||
<LanguageSelector /> | ||
</ul> | ||
</div> | ||
<hr className="my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-4" /> | ||
<span className="block text-sm text-gray-500 sm:text-center dark:text-gray-400"> | ||
© {new Date().getFullYear()}{' '} | ||
<Link href="/"> | ||
<a className="hover:cursor-pointer inline-flex sm:mb-0 text-gray-800 hover:opacity-80 text-xl font-bold items-center"> | ||
<Icon icon={Icons.ETHEREUM} alt="ethereum" /> | ||
{APP_NAME} | ||
</a> | ||
<a className="hover:underline">{APP_NAME}</a> | ||
</Link> | ||
</ul> | ||
<ul className="flex flex-wrap items-center mb-6 text-sm text-gray-500 sm:mb-0 dark:text-gray-400"> | ||
<LanguageSelector /> | ||
</ul> | ||
</div> | ||
<hr className="my-6 border-gray-200 sm:mx-auto dark:border-gray-700 lg:my-8" /> | ||
<span className="block text-sm text-gray-500 sm:text-center dark:text-gray-400"> | ||
© {new Date().getFullYear()}{' '} | ||
<Link href="/"> | ||
<a className="hover:underline">{APP_NAME}</a> | ||
</Link> | ||
. All Rights Reserved. | ||
</span> | ||
</footer> | ||
); | ||
. All Rights Reserved. | ||
</span> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
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
Oops, something went wrong.
d5b8593
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-dapp-example – ./
next-dapp-example-git-main-damla.vercel.app
nextjs-dapp-example.vercel.app
next-dapp-example-damla.vercel.app