Skip to content

Commit

Permalink
Grids Init
Browse files Browse the repository at this point in the history
  • Loading branch information
rakib committed Feb 15, 2025
1 parent cbd252a commit 7265e05
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
10 changes: 10 additions & 0 deletions components/grids/grid.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Boards from '../boards/boards';

export default function Grid(props: any) {
let { className = `gridComponent` } = props;
return (
<div className={`grid userGrid ${className}`}>
<Boards />
</div>
)
}
10 changes: 10 additions & 0 deletions components/grids/grids.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Grid from './grid';

export default function Grids(props: any) {
let { className = `gridsComponent` } = props;
return (
<div className={`grids userGrids ${className}`}>
<Grid />
</div>
)
}
6 changes: 3 additions & 3 deletions pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Boards from '../components/boards/boards'
import Grids from '../components/grids/grids'

<div className={`hidden`}>
# Boards
# Home
</div>

<Boards />
<Grids />
4 changes: 2 additions & 2 deletions shared/database.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { User } from './models/User';
import { Grid } from './models/Grid';
import { Board } from './models/Board';
import { capWords, dev } from '../pages/_app';
import { capWords } from '../pages/_app';
import { GridTypes, Types } from './types/types';
import { BoardTypes } from '../components/boards/boards';
import { isValid, removeNullAndUndefinedProperties, stringNoSpaces } from './constants';
Expand Down Expand Up @@ -83,7 +83,7 @@ export const createUser = (
verified = false,
anonymous = false,
active = true,
type = Types.User
type = Types.User,
) => {

let user: User = new User({
Expand Down

0 comments on commit 7265e05

Please sign in to comment.