Skip to content

refactor: remove index files from components #1086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor: remove Button/index
  • Loading branch information
BrunoQuaresma committed Apr 19, 2022
commit 49be58cf3a68c5e5afa0a22bc9c076e67b87d55f
3 changes: 0 additions & 3 deletions site/src/components/Button/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion site/src/components/CodeExample/CodeExample.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { makeStyles } from "@material-ui/core/styles"
import React from "react"
import { MONOSPACE_FONT_FAMILY } from "../../theme/constants"
import { CopyButton } from "../Button"
import { CopyButton } from "../Button/CopyButton"

export interface CodeExampleProps {
code: string
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Preferences/AccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from "react"
import * as Yup from "yup"
import { getFormHelpers, onChangeTrimmed } from "../Form"
import { Stack } from "../Stack/Stack"
import { LoadingButton } from "./../Button"
import { LoadingButton } from "./../Button/LoadingButton"

interface AccountFormValues {
name: string
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/SignIn/SignInForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FormikContextType, useFormik } from "formik"
import React from "react"
import * as Yup from "yup"
import { getFormHelpers, onChangeTrimmed } from "../Form"
import { LoadingButton } from "./../Button"
import { LoadingButton } from "./../Button/LoadingButton"
import { Welcome } from "./Welcome"

/**
Expand Down
1 change: 0 additions & 1 deletion site/src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./Button"
export * from "./EmptyState"
export * from "./Page"
2 changes: 1 addition & 1 deletion site/src/forms/CreateTemplateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormikContextType, useFormik } from "formik"
import React from "react"
import * as Yup from "yup"
import { CreateTemplateRequest, Organization, Provisioner, Template } from "../api/types"
import { LoadingButton } from "../components/Button"
import { LoadingButton } from "../components/Button/LoadingButton"
import {
DropdownItem,
FormCloseButton,
Expand Down
2 changes: 1 addition & 1 deletion site/src/forms/CreateWorkspaceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormikContextType, useFormik } from "formik"
import React from "react"
import * as Yup from "yup"
import { CreateWorkspaceRequest, Template, Workspace } from "../api/types"
import { LoadingButton } from "../components/Button"
import { LoadingButton } from "../components/Button/LoadingButton"
import { FormCloseButton, FormSection, FormTextField, FormTitle } from "../components/Form"

export interface CreateWorkspaceForm {
Expand Down