From 73308af061af5e17ac7d4a73fa027a2f303c70dd Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Fri, 23 Jul 2021 11:02:26 +0300 Subject: Update graph data when Emacs node changes + minor improvements --- app_expo/components/form-row/form-row.presets.ts | 71 ------------------------ 1 file changed, 71 deletions(-) delete mode 100644 app_expo/components/form-row/form-row.presets.ts (limited to 'app_expo/components/form-row/form-row.presets.ts') diff --git a/app_expo/components/form-row/form-row.presets.ts b/app_expo/components/form-row/form-row.presets.ts deleted file mode 100644 index 0c796c2..0000000 --- a/app_expo/components/form-row/form-row.presets.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { ViewStyle } from 'react-native' -import { color, spacing } from '../../theme' - -/** - * The size of the border radius. - */ -const RADIUS = 8 - -/** - * The default style of the container. - */ -const ROOT: ViewStyle = { - borderWidth: 1, - borderColor: color.line, - padding: spacing[2], -} - -/** - * What each of the presets look like. - */ -export const PRESETS = { - /** - * Rounded borders on the the top only. - */ - top: { - ...ROOT, - borderTopLeftRadius: RADIUS, - borderTopRightRadius: RADIUS, - borderBottomWidth: 0, - }, - /** - * No rounded borders. - */ - middle: { - ...ROOT, - borderBottomWidth: 0, - }, - /** - * Rounded borders on the bottom. - */ - bottom: { - ...ROOT, - borderBottomLeftRadius: RADIUS, - borderBottomRightRadius: RADIUS, - }, - /** - * Rounded borders everywhere. - */ - soloRound: { - ...ROOT, - borderRadius: RADIUS, - }, - /** - * Straight borders everywhere. - */ - soloStraight: { - ...ROOT, - }, - /** - * Transparent borders useful to keep things lined up. - */ - clear: { - ...ROOT, - borderColor: color.transparent, - }, -} - -/** - * The names of the presets supported by FormRow. - */ -export type FormRowPresets = keyof typeof PRESETS -- cgit v1.2.3