feat: add attribution for theme switch
This commit is contained in:
1 parent
663f2334d1
commit
acefedd6e7
1 file changed
+12
-1
@@ -1,4 +1,15 @@
|
|||||||
import React, { useEffect, useState } from "react";
|
/**
|
||||||
|
* ThemeSwitch Component
|
||||||
|
* Dark and Light Theme Switch
|
||||||
|
* Original Code: https://web.dev/patterns/theming/theme-switch
|
||||||
|
* License: Apache License 2.0
|
||||||
|
* Copyright © Google LLC
|
||||||
|
*
|
||||||
|
* This code has been adapted for use in this project.
|
||||||
|
* Apache License: https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
import React, { useEffect } from "react";
|
||||||
import { IconButton } from "@mui/material";
|
import { IconButton } from "@mui/material";
|
||||||
import SunAndMoonIcon from "./SunAndMoonIcon";
|
import SunAndMoonIcon from "./SunAndMoonIcon";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|||||||
Reference in new issue
Block a user