Skip to content

Commit

Permalink
refactor: folder changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Oct 31, 2023
1 parent f107a3e commit 2649651
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GrowthBook, GrowthBookProvider } from '@growthbook/growthbook-react';

import Header from '@components/Header';
import Alert from '@components/Alert';
import Breadcrumbs from '@components/Breadcrumbs';
import { Breadcrumbs } from '@components/breadcrumbs';

// Create a GrowthBook instance
const growthbook = new GrowthBook({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMatches } from 'react-router-dom';

import classes from './breadcrumbs.module.css';

function Breadcrumbs() {
export function Breadcrumbs() {
const matches = useMatches();
const crumbs = matches
// first get rid of any matches that don't have handle and crumb
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Breadcrumbs';
export { Breadcrumbs } from './Breadcrumbs';
2 changes: 2 additions & 0 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ export function Input({
/>
);
}

export default Input;
2 changes: 1 addition & 1 deletion src/components/Input/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Input';
export { Input } from './Input';
3 changes: 2 additions & 1 deletion src/pages/posts/[postId]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { useLiveQuery } from 'dexie-react-hooks';

import { db } from '@services/db';

import Input from '@components/Input';
import { Input } from '@components/input';

import type { IBlogPost } from '@components/PostPreview';

interface IBlogPostProps {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';

import { db } from '@services/db';

import Input from '@components/Input';
import { Input } from '@components/input';

function getRandomInt(max: number) {
return Math.floor(Math.random() * max);
Expand Down

0 comments on commit 2649651

Please sign in to comment.