From 7265e05eddb57c13635d22f1ff8727342d45be92 Mon Sep 17 00:00:00 2001 From: rakib Date: Sat, 15 Feb 2025 05:22:59 -0500 Subject: [PATCH] Grids Init --- components/grids/grid.tsx | 10 ++++++++++ components/grids/grids.tsx | 10 ++++++++++ pages/index.mdx | 6 +++--- shared/database.ts | 4 ++-- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 components/grids/grid.tsx create mode 100644 components/grids/grids.tsx diff --git a/components/grids/grid.tsx b/components/grids/grid.tsx new file mode 100644 index 0000000..9a6dc5a --- /dev/null +++ b/components/grids/grid.tsx @@ -0,0 +1,10 @@ +import Boards from '../boards/boards'; + +export default function Grid(props: any) { + let { className = `gridComponent` } = props; + return ( +
+ +
+ ) +} \ No newline at end of file diff --git a/components/grids/grids.tsx b/components/grids/grids.tsx new file mode 100644 index 0000000..e25fe4e --- /dev/null +++ b/components/grids/grids.tsx @@ -0,0 +1,10 @@ +import Grid from './grid'; + +export default function Grids(props: any) { + let { className = `gridsComponent` } = props; + return ( +
+ +
+ ) +} \ No newline at end of file diff --git a/pages/index.mdx b/pages/index.mdx index dcf4b34..17c0ed4 100644 --- a/pages/index.mdx +++ b/pages/index.mdx @@ -1,7 +1,7 @@ -import Boards from '../components/boards/boards' +import Grids from '../components/grids/grids'
- # Boards + # Home
- \ No newline at end of file + \ No newline at end of file diff --git a/shared/database.ts b/shared/database.ts index 27e7d3b..2b46716 100644 --- a/shared/database.ts +++ b/shared/database.ts @@ -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'; @@ -83,7 +83,7 @@ export const createUser = ( verified = false, anonymous = false, active = true, - type = Types.User + type = Types.User, ) => { let user: User = new User({