Skip to content

Commit

Permalink
fix: remove confetti (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored Dec 17, 2024
1 parent 044e0c3 commit 41bc428
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 67 deletions.
2 changes: 0 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@radix-ui/react-tooltip": "^1.0.7",
"@scure/bip39": "^1.2.2",
"argon2-wasm-esm": "^1.0.3",
"canvas-confetti": "^1.9.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"compare-versions": "^6.1.1",
Expand Down Expand Up @@ -70,7 +69,6 @@
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"@types/canvas-confetti": "^1.6.4",
"@types/node": "^20.10.8",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/screens/channels/CurrentChannelOrder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import {
import { useToast } from "src/components/ui/use-toast";
import { useBalances } from "src/hooks/useBalances";

import confetti from "canvas-confetti";
import { ChannelWaitingForConfirmations } from "src/components/channels/ChannelWaitingForConfirmations";
import { PayLightningInvoice } from "src/components/PayLightningInvoice";
import TwoColumnLayoutHeader from "src/components/TwoColumnLayoutHeader";
Expand Down Expand Up @@ -111,23 +110,6 @@ function ChannelOrderInternal({ order }: { order: NewChannelOrder }) {
}

function Success() {
React.useEffect(() => {
for (let i = 0; i < 10; i++) {
setTimeout(
() => {
confetti({
origin: {
x: Math.random(),
y: Math.random(),
},
colors: ["#000", "#333", "#666", "#999", "#BBB", "#FFF"],
});
},
Math.floor(Math.random() * 1000)
);
}
}, []);

return (
<div className="flex flex-col justify-center gap-5 p-5 max-w-md items-stretch">
<TwoColumnLayoutHeader
Expand Down
19 changes: 0 additions & 19 deletions frontend/src/screens/channels/auto/OpenedAutoChannel.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
import confetti from "canvas-confetti";
import React from "react";
import { Link } from "react-router-dom";
import ExternalLink from "src/components/ExternalLink";
import TwoColumnLayoutHeader from "src/components/TwoColumnLayoutHeader";
import { Button } from "src/components/ui/button";

export function OpenedAutoChannel() {
React.useEffect(() => {
for (let i = 0; i < 10; i++) {
setTimeout(
() => {
confetti({
origin: {
x: Math.random(),
y: Math.random(),
},
colors: ["#000", "#333", "#666", "#999", "#BBB", "#FFF"],
});
},
Math.floor(Math.random() * 1000)
);
}
}, []);

return (
<div className="flex flex-col justify-center gap-5 p-5 max-w-md items-stretch">
<TwoColumnLayoutHeader
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/screens/channels/first/OpenedFirstChannel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import confetti from "canvas-confetti";
import React from "react";
import { Link } from "react-router-dom";
import ExternalLink from "src/components/ExternalLink";
Expand Down Expand Up @@ -54,23 +53,6 @@ export function OpenedFirstChannel() {
})();
}, [albyBalance, hasTransferredFunds, reloadAlbyBalance, toast]);

React.useEffect(() => {
for (let i = 0; i < 10; i++) {
setTimeout(
() => {
confetti({
origin: {
x: Math.random(),
y: Math.random(),
},
colors: ["#000", "#333", "#666", "#999", "#BBB", "#FFF"],
});
},
Math.floor(Math.random() * 1000)
);
}
}, []);

return (
<div className="flex flex-col justify-center gap-5 p-5 max-w-md items-stretch">
<TwoColumnLayoutHeader
Expand Down
10 changes: 0 additions & 10 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2461,11 +2461,6 @@
lodash.merge "^4.6.2"
postcss-selector-parser "6.0.10"

"@types/canvas-confetti@^1.6.4":
version "1.6.4"
resolved "https://registry.yarnpkg.com/@types/canvas-confetti/-/canvas-confetti-1.6.4.tgz#620fd8d78b335d6a4046c0f73236d6988b37552a"
integrity sha512-fNyZ/Fdw/Y92X0vv7B+BD6ysHL4xVU5dJcgzgxLdGbn8O3PezZNIJpml44lKM0nsGur+o/6+NZbZeNTt00U1uA==

"@types/conventional-commits-parser@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz#8c9d23e0b415b24b91626d07017303755d542dc8"
Expand Down Expand Up @@ -2936,11 +2931,6 @@ caniuse-lite@^1.0.30001646:
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001650.tgz#dd1eba0938e39536d184c3c99b2569a13788bc16"
integrity sha512-fgEc7hP/LB7iicdXHUI9VsBsMZmUmlVJeQP2qqQW+3lkqVhbmjEU8zp+h5stWeilX+G7uXuIUIIlWlDw9jdt8g==

canvas-confetti@^1.9.2:
version "1.9.2"
resolved "https://registry.yarnpkg.com/canvas-confetti/-/canvas-confetti-1.9.2.tgz#c9f74098c7fdf66dd9d1aab5d381061cf74e48f0"
integrity sha512-6Xi7aHHzKwxZsem4mCKoqP6YwUG3HamaHHAlz1hTNQPCqXhARFpSXnkC9TWlahHY5CG6hSL5XexNjxK8irVErg==

chalk@^2.4.2:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
Expand Down

0 comments on commit 41bc428

Please sign in to comment.