diff --git a/src/pages/settings.tsx b/src/pages/settings.tsx
index 6bfa938..a86a6eb 100644
--- a/src/pages/settings.tsx
+++ b/src/pages/settings.tsx
@@ -17,6 +17,7 @@ import { copyTextToClipboard } from '../utils'
export const SettingsPage = () => {
const location = useLocation()
+ const userState = useAppSelector((state) => state.user)
return (
@@ -34,7 +35,9 @@ export const SettingsPage = () => {
)}
{location.pathname === appRoutes.settingsAdmin &&
}
-
+ {userState.auth && userState.user?.pubkey && (
+
+ )}
@@ -268,9 +271,7 @@ const ProfileSettings = () => {
-
+
{
fill='currentColor'
className='IBMSMSMSSS_Author_Top_Icon'
>
-
+
- user bio, this is a long string of temporary text that would be replaced with the user bio from their metada address
+ user bio, this is a long string of temporary text that would
+ be replaced with the user bio from their metada address
{
const location = useLocation()
@@ -19,6 +19,8 @@ export const SubmitModPage = () => {
const [modData, setModData] = useState()
const [isFetching, setIsFetching] = useState(false)
+ const userState = useAppSelector((state) => state.user)
+
const title = location.pathname.startsWith('/edit-mod')
? 'Edit Mod'
: 'Submit a mod'
@@ -74,7 +76,9 @@ export const SubmitModPage = () => {
)}
-
+ {userState.auth && userState.user?.pubkey && (
+
+ )}
diff --git a/src/pages/write.tsx b/src/pages/write.tsx
index 2f29851..230edd7 100644
--- a/src/pages/write.tsx
+++ b/src/pages/write.tsx
@@ -1,10 +1,13 @@
import { CheckboxField, InputField } from '../components/Inputs'
import { ProfileSection } from '../components/ProfileSection'
+import { useAppSelector } from '../hooks'
import '../styles/innerPage.css'
import '../styles/styles.css'
import '../styles/write.css'
export const WritePage = () => {
+ const userState = useAppSelector((state) => state.user)
+
return (
@@ -12,7 +15,9 @@ export const WritePage = () => {
-
Write a blog post (WIP)
+
+ Write a blog post (WIP)
+
{
-
+ {userState.auth && userState.user?.pubkey && (
+
+ )}