@@ -2,12 +2,7 @@ import { useEffect, useState, useCallback, useRef } from "react";
2
2
import logo_light from "../assets/logo_light_160.png" ;
3
3
import logo_dark from "../assets/logo_dark_160.png" ;
4
4
import { Banner , Button , Input , Upload , Toast , Spin } from "@douyinfe/semi-ui" ;
5
- import {
6
- IconSun ,
7
- IconMoon ,
8
- IconGithubLogo ,
9
- IconPaperclip ,
10
- } from "@douyinfe/semi-icons" ;
5
+ import { IconGithubLogo , IconPaperclip } from "@douyinfe/semi-icons" ;
11
6
import RichEditor from "../components/LexicalEditor/RichEditor" ;
12
7
import { LexicalComposer } from "@lexical/react/LexicalComposer" ;
13
8
import { editorConfig } from "../data/editorConfig" ;
@@ -108,12 +103,8 @@ function Form({ theme }) {
108
103
dragSubText = "Upload up to 3 images"
109
104
accept = "image/*"
110
105
limit = { 3 }
111
- > </ Upload >
112
- < div className = "pt-4 flex justify-between items-center" >
113
- < div className = "text-sm opacity-80" >
114
- < i className = "fa-brands fa-markdown me-1" > </ i > Styling with markdown is
115
- supported
116
- </ div >
106
+ />
107
+ < div className = "pt-4 flex justify-end items-center" >
117
108
< div className = "flex items-center" >
118
109
< Button
119
110
onClick = { onSubmit }
@@ -140,22 +131,6 @@ export default function BugReport() {
140
131
document . body . setAttribute ( "class" , "theme" ) ;
141
132
} , [ setTheme ] ) ;
142
133
143
- const changeTheme = ( ) => {
144
- const body = document . body ;
145
- const t = body . getAttribute ( "theme-mode" ) ;
146
- if ( t === "dark" ) {
147
- if ( body . hasAttribute ( "theme-mode" ) ) {
148
- body . setAttribute ( "theme-mode" , "light" ) ;
149
- setTheme ( "light" ) ;
150
- }
151
- } else {
152
- if ( body . hasAttribute ( "theme-mode" ) ) {
153
- body . setAttribute ( "theme-mode" , "dark" ) ;
154
- setTheme ( "dark" ) ;
155
- }
156
- }
157
- } ;
158
-
159
134
return (
160
135
< >
161
136
< div className = "sm:py-3 py-5 px-20 sm:px-6 flex justify-between items-center" >
@@ -164,26 +139,13 @@ export default function BugReport() {
164
139
< img
165
140
src = { theme === "dark" ? logo_dark : logo_light }
166
141
alt = "logo"
167
- className = "me-2 sm:h-[28px] md: h-[46px] h-[48px ]"
142
+ className = "me-2 sm:h-[28px] h-[42px ]"
168
143
/>
169
144
</ Link >
170
145
< div className = "ms-4 sm:text-sm xl:text-lg font-semibold" >
171
146
Report a bug
172
147
</ div >
173
148
</ div >
174
- < div className = "flex items-center" >
175
- < Button
176
- icon = {
177
- theme === "dark" ? (
178
- < IconSun size = "extra-large" />
179
- ) : (
180
- < IconMoon size = "extra-large" />
181
- )
182
- }
183
- theme = "borderless"
184
- onClick = { changeTheme }
185
- />
186
- </ div >
187
149
</ div >
188
150
< hr
189
151
className = { `${
0 commit comments