diff --git a/.prettierrc.json b/.prettierrc.json
deleted file mode 100644
index 0967ef4..0000000
--- a/.prettierrc.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/README.md b/README.md
index c0541f9..e69de29 100644
--- a/README.md
+++ b/README.md
@@ -1,70 +0,0 @@
-# Getting Started with Create React App
-
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
-
-## Available Scripts
-
-In the project directory, you can run:
-
-### `yarn start`
-
-Runs the app in the development mode.\
-Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
-
-The page will reload when you make changes.\
-You may also see any lint errors in the console.
-
-### `yarn test`
-
-Launches the test runner in the interactive watch mode.\
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-
-### `yarn build`
-
-Builds the app for production to the `build` folder.\
-It correctly bundles React in production mode and optimizes the build for the best performance.
-
-The build is minified and the filenames include the hashes.\
-Your app is ready to be deployed!
-
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-
-### `yarn eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can't go back!**
-
-If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
-
-You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
-
-### Code Splitting
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
-
-### Analyzing the Bundle Size
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
-
-### Making a Progressive Web App
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
-
-### Advanced Configuration
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
-
-### Deployment
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
-
-### `yarn build` fails to minify
-
-This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
diff --git a/package.json b/package.json
index 7e6dfe1..0e68342 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,6 @@
{
"name": "stream_ui",
"version": "0.1.0",
- "private": true,
"dependencies": {
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",
@@ -52,7 +51,7 @@
"workbox-strategies": "^7.0.0"
},
"scripts": {
- "start": "webpack serve",
+ "start": "webpack serve --node-env=development --mode=development",
"build": "webpack --node-env=production --mode=production",
"deploy": "__XXX='false' && yarn build && npx wrangler pages publish --project-name nostr-live build",
"deploy:xxzap": "__XXX='true' && yarn build && npx wrangler pages publish --project-name xxzap build",
@@ -80,11 +79,10 @@
]
},
"devDependencies": {
- "@babel/core": "^7.22.9",
+ "@babel/core": "^7.22.11",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@babel/preset-env": "^7.21.5",
"@babel/preset-react": "^7.18.6",
- "@babel/preset-typescript": "^7.22.5",
"@formatjs/cli": "^6.1.3",
"@formatjs/ts-transformer": "^3.13.3",
"@testing-library/dom": "^9.3.1",
@@ -101,7 +99,6 @@
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.0",
"eslint": "^8.48.0",
- "eslint-plugin-formatjs": "^4.10.1",
"eslint-webpack-plugin": "^4.0.1",
"html-webpack-plugin": "^5.5.1",
"mini-css-extract-plugin": "^2.7.5",
@@ -111,10 +108,10 @@
"terser-webpack-plugin": "^5.3.9",
"ts-loader": "^9.4.4",
"typescript": "^5.2.2",
- "webpack": "^5.82.1",
+ "webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.8.0",
- "webpack-cli": "^5.1.1",
- "webpack-dev-server": "^4.15.0",
+ "webpack-cli": "^5.1.4",
+ "webpack-dev-server": "^4.15.1",
"workbox-webpack-plugin": "^7.0.0"
},
"packageManager": "yarn@3.6.3",
diff --git a/src/element/emoji-pack.tsx b/src/element/emoji-pack.tsx
index 609b17b..7ed474f 100644
--- a/src/element/emoji-pack.tsx
+++ b/src/element/emoji-pack.tsx
@@ -46,7 +46,7 @@ export function EmojiPack({ ev }: { ev: NostrEvent }) {
-
+ {isUsed ? : }
)}
diff --git a/src/element/follow-button.tsx b/src/element/follow-button.tsx
index 695c99a..3a50da2 100644
--- a/src/element/follow-button.tsx
+++ b/src/element/follow-button.tsx
@@ -53,7 +53,7 @@ export function LoggedInFollowButton({ tag, value }: { tag: "p" | "t"; value: st
type="button"
className="btn btn-primary"
onClick={isFollowing ? unfollow : follow}>
-
+ {isFollowing ? : }
);
}
diff --git a/src/element/mute-button.tsx b/src/element/mute-button.tsx
index dc9ba48..9bebbbf 100644
--- a/src/element/mute-button.tsx
+++ b/src/element/mute-button.tsx
@@ -53,7 +53,7 @@ export function LoggedInMuteButton({ pubkey }: { pubkey: string }) {
return (
(isMuted ? unmute() : mute())}>
-
+ {isMuted ? : }
);
}
diff --git a/src/element/send-zap.tsx b/src/element/send-zap.tsx
index 752bb98..e76d6d9 100644
--- a/src/element/send-zap.tsx
+++ b/src/element/send-zap.tsx
@@ -130,7 +130,7 @@ export function SendZaps({ lnurl, pubkey, aTag, eTag, targetName, onFinish }: Se