Skip to content

Commit

Permalink
feat: added cookie management feature
Browse files Browse the repository at this point in the history
User can change their cookie preference from settings now
  • Loading branch information
saumyakaran authored and sahilnanda1995 committed Dec 1, 2020
1 parent c5997ac commit b8f0da7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/common/layouts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const withDashboardLayout = (children) => {
<div
className={`mx-auto h-full ${
includes(
[Routes.OVERVIEW, Routes.CALCULATOR],
[Routes.OVERVIEW, Routes.CALCULATOR, Routes.SETTINGS],
get(router, "pathname")
) ? "max-w-screen-lg" : "max-w-screen-xl"
}`}
Expand Down
12 changes: 12 additions & 0 deletions components/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ const Settings = () => {
return (
<div className="pt-12 text-gray-700">
<h1 className="font-semibold text-xl">Settings</h1>
<section id="preferences" className="mt-12">
<h3 className="font-medium text-sm">Preferences</h3>
<Divider />
<div className="flex flex-col">
<button
onClick={() => window.Metomic.raise()}
className="flex justify-between px-2 text-sm py-2 my-1 rounded-lg hover:text-teal-500 hover:bg-gray-400 hover:bg-opacity-22"
>
Manage cookies <ChevronRight />
</button>
</div>
</section>
<section id="community" className="mt-12">
<h3 className="font-medium text-sm">Join Our Community</h3>
<Divider />
Expand Down

0 comments on commit b8f0da7

Please sign in to comment.