-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
e71845e
commit d012240
Showing
4 changed files
with
32 additions
and
7 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { View } from 'react-native' | ||
|
||
import { makeStyles } from 'app/styles' | ||
import { zIndex } from 'app/utils/zIndex' | ||
|
||
const useStyles = makeStyles(({ palette }) => ({ | ||
shadow: { | ||
height: 1, | ||
borderBottomWidth: 0, | ||
backgroundColor: palette.neutralLight8, | ||
shadowColor: 'black', | ||
shadowOpacity: 0.3, | ||
shadowRadius: 3, | ||
zIndex: zIndex.HEADER_SHADOW, | ||
shadowOffset: { width: 0, height: 2 } | ||
} | ||
})) | ||
|
||
/** | ||
* Hack: temporary component to add a shadow below mobile headers for DMs. | ||
* TODO: delete this and implement app wide header shadows [C-2709] | ||
*/ | ||
export const HeaderShadow = () => { | ||
const styles = useStyles() | ||
return <View style={styles.shadow} /> | ||
} |
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