Skip to content
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

WIP(5): Component folder structure #2875

Merged
merged 5 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState } from 'react'
import { Button } from './theme/Button'
import { Button } from '../theme/Button'
import { AlertIcon, CheckIcon, CopyIcon } from '@primer/octicons-react'
import * as Sentry from '@sentry/react'
import { ColorTypes } from './theme/colors'
import { ColorTypes } from '../theme/colors'

enum State {
NotCopied,
Expand Down
1 change: 1 addition & 0 deletions components/CopyButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './CopyButton'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import styles from '../scss/discordBar.module.scss'
import styles from './discordBar.module.scss'
type Member = {
id: string
username: string
Expand Down
1 change: 1 addition & 0 deletions components/DiscordBar/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './DiscordBar'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react'
import Dropdown from 'react-bootstrap/Dropdown'
import styles from '../scss/dropDown.module.scss'
import styles from './dropdownMenu.module.scss'
import { DropDirection } from 'react-bootstrap/esm/DropdownContext'
import { ChevronRightIcon } from '@primer/octicons-react'

Expand Down
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to match component name

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use 'sass:color';
@use '_variables.module.scss';
@import 'colors.module.scss';
@use '../../scss/variables.module.scss';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Info: you can omit the leading underscore when importing a Sass partial. (Docs)

@import '../../scss/colors.module.scss';

.dropdown {
display: flex;
Expand Down
1 change: 1 addition & 0 deletions components/DropdownMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { type Item, DropdownMenu } from './DropdownMenu'