Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
inozemtsev-roman committed Apr 21, 2024
1 parent 7c8a496 commit bd0257c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 15 deletions.
Binary file modified bun.lockb
Binary file not shown.
29 changes: 18 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,26 @@
"preview": "vite preview"
},
"dependencies": {
"@tonconnect/ui-react": "^2.0.0",
"@twa-dev/sdk": "^7.0.0",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"@xelene/tgui": "^2.0.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"ton": "^13.9.0",
"vite-plugin-node-polyfills": "^0.21.0"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"@types/node": "^20.12.5",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"typescript": "^5.2.2",
"vite": "^5.2.0"
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}
}
}
9 changes: 9 additions & 0 deletions src/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {TonConnectButton} from "@tonconnect/ui-react";

export const Header = () => {
return (
<header>
<TonConnectButton style={{ marginLeft: 'auto' }} />
</header>
);
};
7 changes: 5 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import '@xelene/tgui/dist/styles.css';
import WebApp from '@twa-dev/sdk'

WebApp.ready();

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
)
3 changes: 1 addition & 2 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}

0 comments on commit bd0257c

Please sign in to comment.