-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1757 from cozy/feat/viewer-mobile-footer
Add mobile actions footer on Viewer
- Loading branch information
Showing
11 changed files
with
161 additions
and
31 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/reply.svg` to regenerate; | ||
import React from 'react' | ||
|
||
function SvgReply(props) { | ||
return ( | ||
<svg viewBox="0 0 16 16" {...props}> | ||
<path | ||
d="M10.054 4.266c-5.39.75-8.705 4.012-10.021 7.685-.184.513.45.912.851.542 2.155-2 5.465-2.93 9.17-2.93v2.496a.5.5 0 00.849.358l4.752-4.634a1.15 1.15 0 00.021-1.626l-4.773-4.655a.5.5 0 00-.849.358v2.406z" | ||
fillRule="evenodd" | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
export default SvgReply |
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,15 @@ | ||
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/share-ios.svg` to regenerate; | ||
import React from 'react' | ||
|
||
function SvgShareIos(props) { | ||
return ( | ||
<svg viewBox="0 0 16 16" {...props}> | ||
<path | ||
d="M5 6v2H3v6h10V8h-2V6h2a2 2 0 012 2v6a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h2zM8.707.293L11.5 3.086A1 1 0 0110.086 4.5L9 3.414V11a1 1 0 01-2 0V3.414L6 4.5a1 1 0 01-1.414-1.414L7.293.293a1 1 0 011.414 0z" | ||
fillRule="evenodd" | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
export default SvgShareIos |
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,14 @@ | ||
import React from 'react' | ||
|
||
import useBreakpoints from '../hooks/useBreakpoints' | ||
|
||
import styles from './styles.styl' | ||
|
||
const Footer = ({ children }) => { | ||
const { isMobile } = useBreakpoints() | ||
|
||
if (!isMobile) return null | ||
return <div className={styles['viewer-footer']}>{children}</div> | ||
} | ||
|
||
export default Footer |
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
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