Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ build
*.njsproj
*.sln
*.sw?

# netlify
netlify.toml
9 changes: 0 additions & 9 deletions env.example

This file was deleted.

4 changes: 3 additions & 1 deletion src/features/ui/mantine/components/Copyright/Copyright.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import reactDappTemplateLogo from '../../../assets/images/react-dapp-template-lo
// You can remove or change this section
export const Copyright: React.FC = React.memo(() => {
return (
<Tooltip label="Powered by React dApp Template (Vite) v0.6.1">
<Tooltip
label={`Powered by React dApp Template (Vite) v${__VITE_REACT_DAPP_TEMPLATE_VERSION__}`}
>
<Button
component="a"
href="https://github.com/huseyindeniz/vite-react-dapp-template"
Expand Down
2 changes: 2 additions & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ interface ImportMeta {
declare module '@metamask/jazzicon' {
export default function (diameter: number, seed: number): HTMLElement;
}

declare const __VITE_REACT_DAPP_TEMPLATE_VERSION__: string;
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import pkg from './package.json';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
define: {
__VITE_REACT_DAPP_TEMPLATE_VERSION__: JSON.stringify(pkg.version),
},
build: {
outDir: 'build',
sourcemap: false,
Expand Down
Loading