Skip to content

Commit

Permalink
styles fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBekket committed Nov 15, 2022
1 parent 6039c11 commit a63631f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 30 deletions.
2 changes: 2 additions & 0 deletions dapp/src/components/createItemSingleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export default function CreateItemSingletonTG(props:Props){
<form onSubmit={createItemSingleton}>
<FormControl>
<FormLabel htmlFor='FileID'>Unique File ID: </FormLabel>
<div>
<Text><b>Unique File id</b>:{file_id}</Text>
</div>
<Button type="submit" isDisabled={!currentAccount}>Create NFT!</Button>
</FormControl>
</form>
Expand Down
11 changes: 7 additions & 4 deletions dapp/src/components/deployCollection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ export default function CreateCollectionTG(props:Props){
var [symbol, setSymbol] = useState<string|null>("")
var [file_ids, setFileIds] = useState<string[]>()
const router = useRouter();
const x = router.query.file_id;

if (Array.isArray(x)) {
setFileIds(x);
}

useEffect(() => {
const queryParams = new URLSearchParams(location.search);

const x = router.query.file_id;

if (Array.isArray(x)) {
setFileIds(x);
}

//var id = queryParams.get('user_tg_id'); // get id as string from query
//let int_id : number = +id; // similar to parseInt()
Expand Down Expand Up @@ -78,9 +79,11 @@ export default function CreateCollectionTG(props:Props){
<form onSubmit={createCollection}>
<FormControl>
<FormLabel htmlFor='FileID'>CollectionData: </FormLabel>
<div>
<Text><b>Name of collection</b>:{name}</Text>
<Text><b>Symbol of collection</b>:{symbol}</Text>
<Text><b>File ids array</b>:{file_ids}</Text>
</div>
<Button type="submit" isDisabled={!currentAccount}>Create NFT!</Button>
</FormControl>
</form>
Expand Down
15 changes: 12 additions & 3 deletions dapp/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import '../styles/globals.css'
import { ChakraProvider } from '@chakra-ui/react'
import type { AppProps } from 'next/app'
import { Layout } from '../components/layout'

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
function MyApp({ Component, pageProps }: AppProps) {
return (
<ChakraProvider>
<Layout>
<Component {...pageProps} />
</Layout>
</ChakraProvider>
)
}

export default MyApp
13 changes: 0 additions & 13 deletions dapp/styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,3 @@
flex-direction: column;
}
}

@media (prefers-color-scheme: dark) {
.card,
.footer {
border-color: #222;
}
.code {
background: #111;
}
.logo img {
filter: invert(1);
}
}
10 changes: 0 additions & 10 deletions dapp/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,3 @@ a {
* {
box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
body {
color: white;
background: black;
}
}

2 comments on commit a63631f

@vercel
Copy link

@vercel vercel bot commented on a63631f Nov 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a63631f Nov 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.