Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Fix some app data page issues (#397)
Browse files Browse the repository at this point in the history
* Fix some app data page issues

* Remove log
  • Loading branch information
nenadV91 authored Mar 22, 2023
1 parent a7376f1 commit 3e310ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/apps/explorer/pages/AppData/EncodePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const EncodePage: React.FC<EncodeProps> = ({ tabData, setTabData, handleTabChang
const formRef = React.useRef<Form<FormProps>>(null)
const ipfsFormRef = React.useRef<Form<FormProps>>(null)

const isDisabled = !appDataForm.metadata?.orderClass?.orderClass || disabledAppData

useEffect(() => {
const fetchSchema = async (): Promise<void> => {
const latestSchema = await getSchema()
Expand Down Expand Up @@ -214,7 +216,7 @@ const EncodePage: React.FC<EncodeProps> = ({ tabData, setTabData, handleTabChang
schema={schema}
uiSchema={uiSchema}
>
<button className="btn btn-info" disabled={disabledAppData} type="submit">
<button className="btn btn-info" disabled={isDisabled} type="submit">
GENERATE APPDATA DOC
</button>
</Form>
Expand Down
6 changes: 4 additions & 2 deletions src/theme/styles/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ export const StaticGlobalStyle = createGlobalStyle`
export const ThemedGlobalStyle = createGlobalStyle`
input,
textarea,
button {
button,
select {
font-family: ${({ theme }): string => theme.fontDefault}, sans-serif;
}
@supports (font-variation-settings: normal) {
input,
textarea,
button {
button,
select {
font-family: ${({ theme }): string => theme.fontVariable}, sans-serif;
}
}
Expand Down

0 comments on commit 3e310ff

Please sign in to comment.