-
Notifications
You must be signed in to change notification settings - Fork 2
Bug/NFTPAR 1070 horizontal paddings #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
a-mikhailova
wants to merge
18
commits into
develop
Choose a base branch
from
bug/NFTPAR-1070-horizontal-paddings
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e557a88
Merge pull request #54 from UniqueNetwork/bugfix/NFTPAR-1002-collecti…
kpozdnikin 9cff7e8
fix: header layout
a-mikhailova 3d684e1
Merge branch 'develop' into bug/NFTPAR-1070-horizontal-paddings
a-mikhailova 6dcc5a9
NFTPAR-1071 decrease mobile-heading
a-mikhailova 8202fe6
bug-NFTPAR-1072-footer-layout
a-mikhailova 3f65b54
feat: preview-button in process
a-mikhailova 95add33
fix: hook to universalize and move to common folder
a-mikhailova f005320
fix: preview-button works correct
a-mikhailova a7c0e4d
fix: (paddings) px to gap
a-mikhailova 1744898
Merge branch 'develop' into bug/NFTPAR-1070-horizontal-paddings
a-mikhailova 1286797
bug/NFTPAR-1058-modal-layout
a-mikhailova ffb8b77
fix: more files
a-mikhailova ebadbed
Merge branch 'develop' into bug/NFTPAR-1070-horizontal-paddings
a-mikhailova f626fbf
Merge branch 'develop' into bug/NFTPAR-1070-horizontal-paddings
a-mikhailova 4bf676f
fix: eslint for *.tsx
a-mikhailova 97c6026
fix: disclaimer layout mostly
a-mikhailova 2d66437
fix: add files
a-mikhailova fe1844d
bug/NFTPAR-1121-faq-heading-size
a-mikhailova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // Copyright 2017-2021 @polkadot/apps authors & contributors | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import React, { Dispatch, SetStateAction, useState } from 'react'; | ||
|
|
||
| interface IAppContext { | ||
| previewButtonDisplayed: boolean; | ||
| setPreviewButtonDisplayed: Dispatch<SetStateAction<boolean>>; | ||
| } | ||
|
|
||
| interface Props { | ||
| children: React.ReactNode; | ||
| } | ||
|
|
||
| const AppCtx = React.createContext<IAppContext>({ previewButtonDisplayed: false, setPreviewButtonDisplayed: () => { } }); | ||
|
|
||
| function AppProvider({ children }: Props): React.ReactElement<Props> { | ||
| const [previewButtonDisplayed, setPreviewButtonDisplayed] = useState(false); | ||
|
|
||
|
|
||
| return ( | ||
| <AppCtx.Provider value={{ previewButtonDisplayed, setPreviewButtonDisplayed }}> | ||
| {children} | ||
| </AppCtx.Provider> | ||
| ); | ||
| } | ||
|
|
||
| export default React.memo(AppProvider); | ||
|
|
||
| export { AppCtx }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а что это в паддингах? лучше это в отдельной задаче на previewButton сделать, я найду таску, на тебя поставлю