-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove Stack component from body
- Loading branch information
1 parent
9b37bec
commit 24da946
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React from 'react'; | ||
import { Box, BoxProps } from '@blockstack/ui'; | ||
import { Image } from '@components/image'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { Image } from '@components/image'; | ||
import { AppState } from '@store'; | ||
import { selectAppName, selectAppIcon } from '@store/onboarding/selectors'; | ||
|
||
const AppIcon = (props: BoxProps) => { | ||
export const AppIcon = ({ ...rest }: BoxProps) => { | ||
const appIcon = useSelector((state: AppState) => selectAppIcon(state)); | ||
const appName = useSelector((state: AppState) => selectAppName(state)); | ||
return ( | ||
<Box size={['48px', '78px']} mx="auto" {...props}> | ||
<Box size={['48px', '78px']} mx="auto" {...rest}> | ||
<Image src={appIcon} alt={appName} /> | ||
</Box> | ||
); | ||
}; | ||
export { AppIcon }; |
This file contains 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