-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Showing
10 changed files
with
80 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { useAppStore } from "@/common/store/app" | ||
import { useNavigate } from "react-router-dom" | ||
import { PrivacyView } from "../views/privacy" | ||
|
||
export const PrivacyRoute = () => { | ||
const navigate = useNavigate() | ||
return <PrivacyView onCloseClicked={() => navigate(-1)} /> | ||
const shareData = useAppStore((state) => state.shareData) | ||
const setShareData = useAppStore((state) => state.setShareData) | ||
return ( | ||
<PrivacyView | ||
onCloseClicked={() => navigate(-1)} | ||
shareData={shareData} | ||
setShareData={setShareData} | ||
/> | ||
) | ||
} |
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,26 @@ | ||
import { InfoIcon, XIcon } from "lucide-react" | ||
|
||
type InfoBarProps = { | ||
onClose: () => void | ||
} | ||
|
||
export const InfoBar = ({ onClose }: InfoBarProps) => { | ||
return ( | ||
<div className="px-8"> | ||
<div className="flex gap-2 items-center w-full bg-secondary p-4 rounded-xl"> | ||
<div className="p-2 bg-neutral rounded-full"> | ||
<InfoIcon className="text-primary" /> | ||
</div> | ||
<div className="flex flex-col"> | ||
<h2>Open Beta version</h2> | ||
<p className="text-gray-400 text-sm"> | ||
Only works for Berkeley before Mainnet launch | ||
</p> | ||
</div> | ||
<button type="button" onClick={onClose}> | ||
<XIcon size={20} className="text-gray-400" /> | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
} |
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