Skip to content

Commit

Permalink
Fix issues preventing builds (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolisliolios authored Oct 3, 2024
1 parent 3c6bdab commit cecc619
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 54 deletions.
3 changes: 2 additions & 1 deletion app/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config = {
"project": true
},
"plugins": [
// @ts-ignore
"@typescript-eslint"
],
"extends": [
Expand Down Expand Up @@ -39,4 +40,4 @@ const config = {
]
}
}
module.exports = config;
module.exports = config;
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@mysten/dapp-kit": "^0.14.20",
"@mysten/dapp-kit": "^0.14.24",
"@mysten/kiosk": "^0.9.20",
"@mysten/sui": "^1.11.0",
"@mysten/suins": "^0.4.0",
Expand Down
64 changes: 17 additions & 47 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions app/src/app/apps/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ export default function AppsLayout({
const { names: ownedNames } = useOwnedAndKioskSuinsNames();

const [appValue, setAppValue] = useState<AppContextType["value"]>({
selectedSuinsName:
JSON.parse(
localStorage.getItem(LocalStorageKeys.SELECTED_NS_NAME) ?? "{}",
)?.selectedSuinsName ?? null,
selectedSuinsName: null
});

useEffect(() => {
const localStorageEntry = JSON.parse(
localStorage.getItem(LocalStorageKeys.SELECTED_NS_NAME) ?? "{}",
)?.selectedSuinsName ?? null;
if (localStorageEntry) {
setAppValue({ selectedSuinsName: localStorageEntry });
}
}, []);

const selectSuinsName = (nftId: string) => {
const selectedSuinsName =
ownedNames?.find((x) => x.nftId === nftId) ?? null;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const Menu = () => {
return (
<>
{Links.map(({ name, href }) => (
<SheetClose asChild>
<SheetClose key={name} asChild>
<Button
asChild
key={name}
Expand Down

0 comments on commit cecc619

Please sign in to comment.