Update sg721 default query type as "collection_info" (#38)

* Update sg721 default query type as collection_info

* Update Stargaze brand text position on welcome screen

* Fix typo on Sg721 contract Execute page
This commit is contained in:
Serkan Reis 2022-08-16 09:59:15 +03:00 committed by GitHub
parent 81dc8ed867
commit c7098cc40c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -45,8 +45,8 @@ const Sg721ExecutePage: NextPage = () => {
const contractState = useInputState({
id: 'contract-address',
name: 'contract-address',
title: 'Minter Address',
subtitle: 'Address of the Minter contract',
title: 'Sg721 Address',
subtitle: 'Address of the Sg721 contract',
})
const messageState = useInputState({

View File

@ -48,7 +48,7 @@ const Sg721QueryPage: NextPage = () => {
})
const tokenId = tokenIdState.value
const [type, setType] = useState<QueryType>('owner_of')
const [type, setType] = useState<QueryType>('collection_info')
const addressVisible = ['approval', 'all_operators', 'tokens'].includes(type)
const tokenIdVisible = ['owner_of', 'approval', 'approvals', 'nft_info', 'all_nft_info'].includes(type)
@ -108,6 +108,7 @@ const Sg721QueryPage: NextPage = () => {
'placeholder:text-white/50',
'focus:ring focus:ring-plumbus-20',
)}
defaultValue="collection_info"
id="contract-query-type"
name="query-type"
onChange={(e) => setType(e.target.value as QueryType)}

View File

@ -6,7 +6,7 @@ const HomePage: NextPage = () => {
return (
<section className="px-8 pt-4 pb-16 mx-auto space-y-8 max-w-4xl">
<div className="flex justify-center items-center py-8 max-w-xl">
<img alt="Brand Text" className="w-full" src="/stargaze-text.png" />
<img alt="Brand Text" className="ml-[50%] w-full" src="/stargaze-text.png" />
</div>
<h1 className="font-heading text-4xl font-bold">Welcome!</h1>
<p className="text-xl">