mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
feat: announcement dialog
This commit is contained in:
14
apps/mobile/src/components/Announcements/functions.js
Normal file
14
apps/mobile/src/components/Announcements/functions.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export const margins = {
|
||||
0: 0,
|
||||
1: 12,
|
||||
2: 20
|
||||
};
|
||||
|
||||
export const getStyle = style => {
|
||||
if (!style) return {};
|
||||
return {
|
||||
marginTop: margins[style.marginTop] || 0,
|
||||
marginBottom: margins[style.marginBottom] || 0,
|
||||
textAlign: style.textAlign || 'left'
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user