refactor: types and constants directories

This commit is contained in:
Mo
2022-06-01 10:23:37 -05:00
parent 54125cec21
commit 721cf8df35
70 changed files with 67 additions and 170 deletions

View File

@@ -1,4 +1,4 @@
import { MILLISECONDS_IN_A_DAY } from '@/Constants'
import { MILLISECONDS_IN_A_DAY } from '@/Constants/Constants'
export const calculateDifferenceBetweenDatesInDays = (firstDate: Date, secondDate: Date) => {
const firstDateAsUTCMilliseconds = Date.UTC(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate())

View File

@@ -1,4 +1,4 @@
import { MAX_MENU_SIZE_MULTIPLIER, MENU_MARGIN_FROM_APP_BORDER } from '@/Constants'
import { MAX_MENU_SIZE_MULTIPLIER, MENU_MARGIN_FROM_APP_BORDER } from '@/Constants/Constants'
export type SubmenuStyle = {
top?: number | 'auto'

View File

@@ -1,6 +1,6 @@
import { Platform, platformFromString } from '@standardnotes/snjs'
import { IsDesktopPlatform, IsWebPlatform } from '@/Version'
import { EMAIL_REGEX } from '../Constants'
import { IsDesktopPlatform, IsWebPlatform } from '@/Constants/Version'
import { EMAIL_REGEX } from '../Constants/Constants'
export { isMobile } from './IsMobile'
declare const process: {