chore(git): merge pull request 'fix(wot): profile pref user wot' (#157) from 156-wot-level into staging
All checks were successful
Release to Staging / build_and_release (push) Successful in 49s
All checks were successful
Release to Staging / build_and_release (push) Successful in 49s
Reviewed-on: #157
This commit is contained in:
commit
990f91c0a6
@ -21,12 +21,14 @@ export const PreferencesSetting = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (user?.pubkey) {
|
if (user?.pubkey) {
|
||||||
|
const hexPubkey = user.pubkey as string
|
||||||
fetchEventFromUserRelays(
|
fetchEventFromUserRelays(
|
||||||
{
|
{
|
||||||
kinds: [NDKKind.AppSpecificData],
|
kinds: [NDKKind.AppSpecificData],
|
||||||
'#d': ['degmods']
|
'#d': ['degmods'],
|
||||||
|
authors: [hexPubkey]
|
||||||
},
|
},
|
||||||
user.pubkey as string,
|
hexPubkey,
|
||||||
UserRelaysType.Both
|
UserRelaysType.Both
|
||||||
).then((event) => {
|
).then((event) => {
|
||||||
if (event) {
|
if (event) {
|
||||||
@ -119,6 +121,7 @@ export const PreferencesSetting = () => {
|
|||||||
className='CheckboxMain'
|
className='CheckboxMain'
|
||||||
name='notificationsSettings'
|
name='notificationsSettings'
|
||||||
checked
|
checked
|
||||||
|
readOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
||||||
@ -130,6 +133,7 @@ export const PreferencesSetting = () => {
|
|||||||
className='CheckboxMain'
|
className='CheckboxMain'
|
||||||
name='notificationsSettings'
|
name='notificationsSettings'
|
||||||
checked
|
checked
|
||||||
|
readOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
||||||
@ -141,6 +145,7 @@ export const PreferencesSetting = () => {
|
|||||||
className='CheckboxMain'
|
className='CheckboxMain'
|
||||||
name='notificationsSettings'
|
name='notificationsSettings'
|
||||||
checked
|
checked
|
||||||
|
readOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
||||||
@ -152,6 +157,7 @@ export const PreferencesSetting = () => {
|
|||||||
className='CheckboxMain'
|
className='CheckboxMain'
|
||||||
name='notificationsSettings'
|
name='notificationsSettings'
|
||||||
checked
|
checked
|
||||||
|
readOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
<div className='inputLabelWrapperMain inputLabelWrapperMainAlt inputLabelWrapperMainAltStylized'>
|
||||||
@ -163,6 +169,7 @@ export const PreferencesSetting = () => {
|
|||||||
className='CheckboxMain'
|
className='CheckboxMain'
|
||||||
name='notificationsSettings'
|
name='notificationsSettings'
|
||||||
checked
|
checked
|
||||||
|
readOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -212,6 +219,7 @@ export const PreferencesSetting = () => {
|
|||||||
className='CheckboxMain'
|
className='CheckboxMain'
|
||||||
name='WoTZap'
|
name='WoTZap'
|
||||||
checked
|
checked
|
||||||
|
readOnly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user