|
@@ -50,6 +50,21 @@ import 钴蓝色 from './themeData/钴蓝色.json'
|
|
|
import 深黄色 from './themeData/深黄色.json'
|
|
|
import 深蓝色 from './themeData/深蓝色.json'
|
|
|
|
|
|
+import 青色图标 from '../../img/青色.svg'
|
|
|
+import 蓝色图标 from '../../img/蓝色.svg'
|
|
|
+import 橙色图标 from '../../img/橙色.svg'
|
|
|
+import 红色图标 from '../../img/红色.svg'
|
|
|
+import 紫色图标 from '../../img/紫色.svg'
|
|
|
+import 绿色图标 from '../../img/绿色.svg'
|
|
|
+import 灰色图标 from '../../img/灰色.svg'
|
|
|
+import 长春花色图标 from '../../img/长春花色.svg'
|
|
|
+import 黑色图标 from '../../img/黑色.svg'
|
|
|
+import 天蓝色图标 from '../../img/天蓝色.svg'
|
|
|
+import 钴蓝色图标 from '../../img/钴蓝色.svg'
|
|
|
+import 深黄色图标 from '../../img/深黄色.svg'
|
|
|
+import 深蓝色图标 from '../../img/深蓝色.svg'
|
|
|
+
|
|
|
+
|
|
|
import { LocalLanguage20Regular, Settings20Regular, WindowAdPerson20Filled } from '@fluentui/react-icons'
|
|
|
import {
|
|
|
Menu,
|
|
@@ -60,7 +75,75 @@ import {
|
|
|
} from "@fluentui/react-components";
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
|
|
-const ThemeData = ["青色", "蓝色", "橙色", "红色", "紫色", "绿色", "灰色", "长春花色", "黑色", "天蓝色", "钴蓝色", "深黄色", "深蓝色"]
|
|
|
+//"青色", "蓝色", "橙色", "红色", "紫色", "绿色", "灰色", "长春花色", "黑色", "天蓝色", "钴蓝色", "深黄色", "深蓝色"
|
|
|
+const ThemeData = [
|
|
|
+ {
|
|
|
+ "name": "青色",
|
|
|
+ "icon": 青色图标,
|
|
|
+ "config":青色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "蓝色",
|
|
|
+ "icon": 蓝色图标,
|
|
|
+ "config":蓝色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "橙色",
|
|
|
+ "icon": 橙色图标,
|
|
|
+ "config":橙色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "红色",
|
|
|
+ "icon": 红色图标,
|
|
|
+ "config":红色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "紫色",
|
|
|
+ "icon": 紫色图标,
|
|
|
+ "config":紫色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "绿色",
|
|
|
+ "icon": 绿色图标,
|
|
|
+ "config":绿色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "灰色",
|
|
|
+ "icon": 灰色图标,
|
|
|
+ "config":灰色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "长春花色",
|
|
|
+ "icon": 长春花色图标,
|
|
|
+ "config":长春花色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "黑色",
|
|
|
+ "icon": 黑色图标,
|
|
|
+ "config":黑色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "天蓝色",
|
|
|
+ "icon": 天蓝色图标,
|
|
|
+ "config":天蓝色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "钴蓝色",
|
|
|
+ "icon": 钴蓝色图标,
|
|
|
+ "config":钴蓝色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "深黄色",
|
|
|
+ "icon": 深黄色图标,
|
|
|
+ "config":深黄色
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "深蓝色",
|
|
|
+ "icon": 深蓝色图标,
|
|
|
+ "config":深蓝色
|
|
|
+ }
|
|
|
+
|
|
|
+]
|
|
|
const useExampleStyles = makeStyles({
|
|
|
popoverSurface: {
|
|
|
width: "512px",
|
|
@@ -88,6 +171,102 @@ const useGridExampleStyles = makeStyles({
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+const appDatas = [
|
|
|
+ { title: "Microsoft 365", img: m365 },
|
|
|
+ { title: "OutLook", img: outlook },
|
|
|
+ { title: "OneDrice", img: oneDrice },
|
|
|
+ { title: "Word", img: word },
|
|
|
+ { title: "Excel", img: excel },
|
|
|
+ { title: "PowerPoint", img: ppt },
|
|
|
+ { title: "OneNote", img: oneNote },
|
|
|
+ { title: "SharePoint", img: sps },
|
|
|
+ { title: "Teams", img: teams },
|
|
|
+ { title: "Visio", img: vi },
|
|
|
+ { title: "Engaga", img: engaga },
|
|
|
+ { title: "PA", img: pa },
|
|
|
+ { title: "更多", img: gd },
|
|
|
+]
|
|
|
+
|
|
|
+const App = (data)=>{
|
|
|
+ return (
|
|
|
+ <div className="zl-365-article">
|
|
|
+ <button
|
|
|
+ title={data.title}
|
|
|
+ aria-label={data.title+" 将在新选项卡中打开"}
|
|
|
+ >
|
|
|
+ <div style={{ width: "100%" }}>
|
|
|
+ <img
|
|
|
+ src={data.img}
|
|
|
+ style={{
|
|
|
+ width: "32px",
|
|
|
+ height: "40px",
|
|
|
+ display: "inline-block",
|
|
|
+ }}
|
|
|
+ alt={data.title}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div style={{ width: "100%" }}>
|
|
|
+ <span>{data.title}</span>
|
|
|
+ </div>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+const docList = [
|
|
|
+ { title: "文档", img1: wd1,img2:wd2,width: "32px", height: "48px" },
|
|
|
+ { title:"工作簿",img1:gzp1,img2:gzp2,width: "55.8px", height: "44px"},
|
|
|
+ { title:"演示文稿",img1:yswd1,img2:yswd2,width: "66.6px", height: "44px"},
|
|
|
+ { title:"调查",img1:dc1,img2:dc2,width: "39px", height: "44px"},
|
|
|
+ { title:"创建更多",img1:cjgd,img2:null,width: "32px", height: "32px"}
|
|
|
+]
|
|
|
+
|
|
|
+const Doc = (data) => {
|
|
|
+ return (
|
|
|
+ <div className="intentTileWrapper">
|
|
|
+ <button
|
|
|
+ className="intentTile-button"
|
|
|
+ aria-label={data.title+" 将在新选项卡中打开"}
|
|
|
+ >
|
|
|
+ <div className="intentTile-icon-content">
|
|
|
+ <div className="intentTile-icon1">
|
|
|
+ <img
|
|
|
+ src={data.img1}
|
|
|
+ style={{
|
|
|
+ width: "32px",
|
|
|
+ height: "44px",
|
|
|
+ display: "inline-block",
|
|
|
+ }}
|
|
|
+ alt={data.title}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ {
|
|
|
+ data.img2 == null
|
|
|
+ ? null
|
|
|
+ :
|
|
|
+ (
|
|
|
+ <div className="intentTile-icon2">
|
|
|
+ <img
|
|
|
+ src={data.img2}
|
|
|
+ style={{
|
|
|
+ display: "inline-block",
|
|
|
+ }}
|
|
|
+ alt={data.title}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div className="intentTile-text">
|
|
|
+ <span>{data.title}</span>
|
|
|
+ </div>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
const PositionedComponent = (props) => {
|
|
|
const { positioning, targetContent = "Click me", targetClassName } = props;
|
|
@@ -141,423 +320,14 @@ const PositionedComponent = (props) => {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style={{ width: "480px", height: "409px" }}>
|
|
|
- <div
|
|
|
- style={{
|
|
|
- flex: "0 0 100%",
|
|
|
- height: "264px",
|
|
|
- display: "flex",
|
|
|
- flexWrap: "wrap",
|
|
|
- marginTop: "8px",
|
|
|
- }}
|
|
|
- >
|
|
|
- <div className="zl-365-article">
|
|
|
- <button
|
|
|
- title="Microsoft 365"
|
|
|
- aria-label="Microsoft 365 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={m365}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Microsoft 365"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Microsoft 365</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="OutLook" aria-label="OutLook 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={outlook}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Outlook"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Outlook</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="OneDrice" aria-label="OneDrice 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={oneDrice}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="OneDrice"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>OneDrice</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="Word" aria-label="Word 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={word}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Word"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Word</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="Excel" aria-label="Excel 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={excel}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Excel"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Excel</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button
|
|
|
- title="PowerPoint"
|
|
|
- aria-label="PowerPoint 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={ppt}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="PowerPoint"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>PowerPoint</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="OneNote" aria-label="OneNote 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={oneNote}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="OneNote"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>OneNote</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button
|
|
|
- title="SharePoint"
|
|
|
- aria-label="SharePoint 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={sps}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="SharePoint"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>SharePoint</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="SharePoint" aria-label="Teams 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={teams}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Teams"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Teams</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="Viva" aria-label="Viva 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={vi}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Viva"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Viva</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="Engaga" aria-label="Engaga 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={engaga}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="Engaga"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>Viva</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button
|
|
|
- title="PowerAutomate"
|
|
|
- aria-label="PowerAutomate 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={pa}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="PowerAutomate"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%", display: "grid" }}>
|
|
|
- <span>Power</span>
|
|
|
- <span>Automate</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="zl-365-article">
|
|
|
- <button title="更多应用" aria-label="更多应用 将在新选项卡中打开">
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <img
|
|
|
- src={gd}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "40px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="更多应用"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div style={{ width: "100%" }}>
|
|
|
- <span>更多应用</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ <div style={{flex: "0 0 100%",height: "264px",display: "flex",flexWrap: "wrap",marginTop: "8px"}}>
|
|
|
+ {appDatas.map((data) => <App key={data.title} {...data} />)}
|
|
|
</div>
|
|
|
<div className="custom-div">
|
|
|
<hr className="custom-hr" />
|
|
|
</div>
|
|
|
- <div style={{
|
|
|
- width: "480px", height: "145px",
|
|
|
- flex: "0 0 100%",
|
|
|
- display: "flex",
|
|
|
- flexWrap: "wrap"
|
|
|
- }}>
|
|
|
- <div className="intentTileWrapper">
|
|
|
- <button
|
|
|
- className="intentTile-button"
|
|
|
- aria-label="文档 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div className="intentTile-icon-content">
|
|
|
- <div className="intentTile-icon1">
|
|
|
- <img
|
|
|
- src={wd1}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "44px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="文档"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div className="intentTile-icon2">
|
|
|
- <img
|
|
|
- src={wd2}
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="文档"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div className="intentTile-text">
|
|
|
- <span>文档</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="intentTileWrapper">
|
|
|
- <button
|
|
|
- className="intentTile-button"
|
|
|
- aria-label="工作簿 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div className="intentTile-icon-content">
|
|
|
- <div className="intentTile-icon1">
|
|
|
- <img
|
|
|
- src={gzp1}
|
|
|
- style={{
|
|
|
- width: "55.8px",
|
|
|
- height: "44px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="工作簿"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div className="intentTile-icon2">
|
|
|
- <img
|
|
|
- src={gzp2}
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="工作簿"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div className="intentTile-text">
|
|
|
- <span>工作簿</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="intentTileWrapper">
|
|
|
- <button
|
|
|
- className="intentTile-button"
|
|
|
- aria-label="演示文稿 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div className="intentTile-icon-content">
|
|
|
- <div className="intentTile-icon1">
|
|
|
- <img
|
|
|
- src={yswd1}
|
|
|
- style={{
|
|
|
- width: "66.6px",
|
|
|
- height: "44px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="演示文稿"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div className="intentTile-icon2">
|
|
|
- <img
|
|
|
- src={yswd2}
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="演示文稿"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div className="intentTile-text">
|
|
|
- <span>演示文稿</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="intentTileWrapper">
|
|
|
- <button
|
|
|
- className="intentTile-button"
|
|
|
- aria-label="调查 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div className="intentTile-icon-content">
|
|
|
- <div className="intentTile-icon1">
|
|
|
- <img
|
|
|
- src={dc1}
|
|
|
- style={{
|
|
|
- width: "39px",
|
|
|
- height: "44px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="调查"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div className="intentTile-icon2">
|
|
|
- <img
|
|
|
- src={dc2}
|
|
|
- style={{
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="调查"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div className="intentTile-text">
|
|
|
- <span>调查</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div className="intentTileWrapper">
|
|
|
- <button
|
|
|
- className="intentTile-button"
|
|
|
- aria-label="创建更多 将在新选项卡中打开"
|
|
|
- >
|
|
|
- <div className="intentTile-icon-content">
|
|
|
- <div className="intentTile-icon1" style={{ width: "88px", height: "76px", display: "contents" }}>
|
|
|
- <img
|
|
|
- src={cjgd}
|
|
|
- style={{
|
|
|
- width: "32px",
|
|
|
- height: "32px",
|
|
|
- display: "inline-block",
|
|
|
- }}
|
|
|
- alt="创建更多"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div className="intentTile-text">
|
|
|
- <span>创建更多</span>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ <div style={{width: "480px", height: "145px",flex: "0 0 100%",display: "flex",flexWrap: "wrap"}}>
|
|
|
+ {docList.map((data) => <Doc key={data.title} {...data} />)}
|
|
|
</div>
|
|
|
</div>
|
|
|
</PopoverSurface>
|
|
@@ -577,7 +347,6 @@ const IconHtml = () => {
|
|
|
|
|
|
|
|
|
const ChangeTheme = (name) => {
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -617,10 +386,17 @@ const Header = () => {
|
|
|
<MenuPopover>
|
|
|
<MenuList>
|
|
|
{
|
|
|
- Array.from(ThemeData, (name) => {
|
|
|
+ Array.from(ThemeData, (item) => {
|
|
|
return (<MenuItem onClick={() => {
|
|
|
- ChangeTheme(name)
|
|
|
- }}>{name}</MenuItem>)
|
|
|
+ ChangeTheme(item.name)
|
|
|
+ }}>
|
|
|
+ <div class="theme-modal-item">
|
|
|
+ <div class="theme-modal-item-sp">
|
|
|
+ <img src={item.icon} alt="" srcset="" />
|
|
|
+ </div>
|
|
|
+ <div class="theme-modal-item-text">{item.name}</div>
|
|
|
+ </div>
|
|
|
+ </MenuItem>)
|
|
|
})
|
|
|
}
|
|
|
</MenuList>
|