Skip to content

Commit

Permalink
fix: remove unnecessary react import club import
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-29 committed Oct 2, 2024
1 parent eb2d4d7 commit 3ee0617
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// types
import { ReactNode } from "react";
import type { Metadata } from "next";

// styles
import "@/styles/globals.css";
import React from "react";

export const metadata: Metadata = {
title: "DiceDB Playground",
Expand All @@ -14,7 +17,7 @@ export const metadata: Metadata = {
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
children: ReactNode;
}>) {
return (
<html lang="en">
Expand Down
1 change: 1 addition & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// components
import Playground from "@/components/Playground/Playground";
import Footer from "@/components/Footer/Footer"; // comment this to hide footer

Expand Down
3 changes: 2 additions & 1 deletion src/components/CLI/CLI.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// src/components/CLI/CLI.tsx

"use client";

// hooks
import { useCli } from "./hooks/useCli";

interface CliProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
// icons
import { Button } from "@mui/material";
import { Twitter } from "@mui/icons-material";
import GitHub from "@mui/icons-material/GitHub";
Expand Down
1 change: 0 additions & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";

export default function Header() {
return (
<header className="flex items-center mb-4">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Search/SearchBox.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use client";

import React from "react";
import {SetStateAction, Dispatch} from "react";
import { Search } from "lucide-react";
import { DiceCmds, DiceCmdMeta } from "@/data/command";
import CommandPage from "./command";

interface SearchBoxProps {
search: string;
setSearch: React.Dispatch<React.SetStateAction<string>>;
setSearch: Dispatch<SetStateAction<string>>;
}

export default function SearchBox({ search, setSearch }: SearchBoxProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/command.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import { Clipboard } from "lucide-react";
import { DiceCmdMeta } from "@/data/command";

Expand Down

0 comments on commit 3ee0617

Please sign in to comment.