Skip to content

sweep :fix this issue  #11

@Adamkaram

Description

@Adamkaram

in layout.tsx
move those lines to a new component and put 'use client ' line in first line of this file
then import it in layout.tsx

import React, { useState } from 'react';

const [theme, setTheme] = useState('light');

const toggleTheme = () => {
setTheme(theme === 'light' ? 'dark' : 'light');
};

      <button onClick={toggleTheme}>Toggle Theme</button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweepAssigns Sweep to an issue or pull request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions