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(14): Component folder structure #2938

Merged
merged 4 commits into from
Apr 26, 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Star as StarType } from '../graphql/index'
import { Star as StarType } from '../../graphql/index'
import { Star as StarIcon } from 'react-feather'
import _ from 'lodash'
import styles from '../scss/profileStarComments.module.scss'
import styles from './profileStarComments.module.scss'

type StarCommentsProps = {
stars: StarType[]
Expand Down
1 change: 1 addition & 0 deletions components/ProfileStarComments/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ProfileStarComments'
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Star as StarType } from '../graphql/index'
import { Star as StarType } from '../../graphql/index'
import { Star } from 'react-feather'
import styles from '../scss/profileSubmissions.module.scss'
import { SubmissionStatus as SubmissionStatusEnum } from '../graphql'
import styles from './profileSubmissions.module.scss'
import { SubmissionStatus as SubmissionStatusEnum } from '../../graphql'

type ChallengeStatusProps = {
challengesData: Challenge[]
Expand Down
5 changes: 5 additions & 0 deletions components/ProfileSubmissions/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export {
type LessonChallenge,
SubmissionStatus,
default
} from './ProfileSubmissions'
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Button } from './theme/Button'
import UserInfoImage from './UserInfoImage'
import { UserInfo } from '../@types/user'
import styles from '../scss/submissionCard.module.scss'
import { Button } from '../theme/Button'
import UserInfoImage from '../UserInfoImage'
import { UserInfo } from '../../@types/user'
import styles from './submissionCard.module.scss'

type Props = {
userId: string
Expand Down
1 change: 1 addition & 0 deletions components/SubmissionCard/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './SubmissionCard'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { UserInfo } from '../@types/user'
import { UserInfo } from '../../@types/user'
import Image from 'next/image'
import styles from '../scss/userInfoImage.module.scss'
import styles from './userInfoImage.module.scss'
type UserProps = {
user: UserInfo
className?: string
Expand Down
1 change: 1 addition & 0 deletions components/UserInfoImage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { DiscordAvatar, default } from './UserInfoImage'