Skip to content

Commit

Permalink
chore(release): 1.234.0
Browse files Browse the repository at this point in the history
# [1.234.0](v1.233.0...v1.234.0) (2024-12-06)

### Features

* remove nakamoto modal ([35671f3](35671f3))
  • Loading branch information
semantic-release-bot authored and He1DAr committed Dec 6, 2024
1 parent 35671f3 commit d28e17f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.234.0](https://github.com/hirosystems/explorer/compare/v1.233.0...v1.234.0) (2024-12-06)


### Features

* remove nakamoto modal ([35671f3](https://github.com/hirosystems/explorer/commit/35671f32304bdc1cbe4ce28127fc6b4ecc65d49e))

# [1.233.0](https://github.com/hirosystems/explorer/compare/v1.232.0...v1.233.0) (2024-12-05)


Expand Down
26 changes: 13 additions & 13 deletions src/common/components/modals/Nakamoto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ import { TextLink } from '../../../ui/TextLink';
export function NakamotoModal() {
const [isOpen, setIsOpen] = useState(false);

useEffect(() => {
const nakamotoModalShown = localStorage.getItem('nakamoto3MainnetModalShown');
try {
const dismissQueryParam = new URLSearchParams(window.location.search).get('dismiss');
// to run performance testing without the modal
if (dismissQueryParam === 'nakamoto') {
return;
}
} catch (e) {}
if (!nakamotoModalShown || nakamotoModalShown === 'false') {
setIsOpen(true);
}
}, []);
// useEffect(() => {
// const nakamotoModalShown = localStorage.getItem('nakamoto3MainnetModalShown');
// try {
// const dismissQueryParam = new URLSearchParams(window.location.search).get('dismiss');
// // to run performance testing without the modal
// if (dismissQueryParam === 'nakamoto') {
// return;
// }
// } catch (e) {}
// if (!nakamotoModalShown || nakamotoModalShown === 'false') {
// setIsOpen(true);
// }
// }, []);

const handleClose = () => {
localStorage.setItem('nakamoto3MainnetModalShown', 'true');
Expand Down
Empty file added test.js
Empty file.

0 comments on commit d28e17f

Please sign in to comment.