-
Notifications
You must be signed in to change notification settings - Fork 78
Adds form elements #587
Adds form elements #587
Changes from 6 commits
07431cb
3bdeee2
76334fa
bff5ac2
9f8ab47
bb8ad67
2c008e3
3ec9d7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import * as React from "react" | ||
import { Text, View } from "react-native" | ||
|
||
import Search from "../components/artist-search-results" | ||
import BottomAlignedButton, { BottomAlignedProps } from "../components/bottom-aligned-button" | ||
import Search from "../components/artist_search_results" | ||
import BottomAlignedButton, { BottomAlignedProps } from "../components/bottom_aligned_button" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bunch of renames, they're in a folder called consignments already, so no need for extra context |
||
|
||
export const name = "Consignments - bottom aligned" | ||
export const component = BottomAlignedButton | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import "./consignments.story" | ||
import "./typography.story" | ||
import "./style.story" | ||
|
||
import { storiesOf } from "@storybook/react-native" | ||
import * as React from "react" | ||
import { View } from "react-native" | ||
|
||
import * as bottomAlignedButton from "./consignments-bottom-aligned.story" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved all of my kebab named files to lowercase, this is mainly to be consistent with code that came before me - we should consider adding a danger rule for this ( thinking of the same for Jest too jestjs/jest#3771 ) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea, I'm down for lowercase and snake case for files, def. |
||
import * as search from "./consignments-search.story" | ||
import * as todo from "./consignments-todo.story" | ||
import * as bottomAlignedButton from "./bottom_aligned.story" | ||
import * as search from "./search.story" | ||
import * as todo from "./todo.story" | ||
|
||
// Just a quick interface so you know the API | ||
export interface AutoStory { | ||
name: string | ||
allStates: any[] | ||
component: any | ||
} | ||
|
||
// Converts a set of state and a component type into a set of stories | ||
const autoStories: AutoStory[] = [search, bottomAlignedButton, todo] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mennenia @sarahscott @alloy @l2succes - this turns on prettier by default when you press save
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a compulsive saver (i occasionally try to
cmd-s
in real life), does this noticeably slow down the editor or hang?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, I'm a compulsive saver too, all these things are done async too
There is an option to run on every newline instead, but I felt that was a bit overkill