Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
calvadev committed Sep 3, 2024
1 parent a2b3a47 commit 916aebf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
5 changes: 1 addition & 4 deletions components/nav-top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ const TopNav = ({
}: {
setFocusedPubkey: (value: string) => void;
}) => {
const {
isHomeActive,
isProfileActive,
} = useNavigation();
const { isHomeActive, isProfileActive } = useNavigation();
const router = useRouter();

const chatsContext = useContext(ChatsContext);
Expand Down
4 changes: 1 addition & 3 deletions components/utility-components/request-passphrase-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import {
Input,
Button,
} from "@nextui-org/react";
import {
validPassphrase,
} from "../utility/nostr-helper-functions";
import { validPassphrase } from "../utility/nostr-helper-functions";
import { SHOPSTRBUTTONCLASSNAMES } from "../utility/STATIC-VARIABLES";
import { useRouter } from "next/router";

Expand Down
1 change: 0 additions & 1 deletion components/wallet/mint-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ const MintButton = ({ passphrase }: { passphrase?: string }) => {
numSats: number,
hash: string,
) {

while (true) {
try {
const { proofs } = await wallet.requestTokens(numSats, hash);
Expand Down
8 changes: 1 addition & 7 deletions pages/settings/shop-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ const ShopSettingsPage = () => {
const { signInMethod } = getLocalStorageData();

const shopContext = useContext(ShopMapContext);
const {
handleSubmit,
control,
reset,
watch,
setValue,
} = useForm({
const { handleSubmit, control, reset, watch, setValue } = useForm({
defaultValues: {
banner: "",
picture: "",
Expand Down
14 changes: 2 additions & 12 deletions pages/settings/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ const UserProfilePage = () => {
const { signInMethod, userNPub } = getLocalStorageData();

const profileContext = useContext(ProfileMapContext);
const {
handleSubmit,
control,
reset,
watch,
setValue,
} = useForm({
const { handleSubmit, control, reset, watch, setValue } = useForm({
defaultValues: {
banner: "",
picture: "",
Expand Down Expand Up @@ -89,11 +83,7 @@ const UserProfilePage = () => {

const onSubmit = async (data: { [x: string]: string }) => {
setIsUploadingProfile(true);
await createNostrProfileEvent(
userPubkey,
JSON.stringify(data),
passphrase,
);
await createNostrProfileEvent(userPubkey, JSON.stringify(data), passphrase);
profileContext.updateProfileData({
pubkey: userPubkey,
content: data,
Expand Down

0 comments on commit 916aebf

Please sign in to comment.