Skip to content

Commit 7add91e

Browse files
committed
cached
1 parent 92e4388 commit 7add91e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

translate/src/App.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import {
1414
IconButton,
1515
Typography,
1616
TextField,
17+
FormControlLabel,
18+
Switch,
1719
} from "@mui/material";
1820
import MenuIcon from "@mui/icons-material/Menu";
1921
import { useTheme } from "@mui/material/styles";
@@ -167,6 +169,19 @@ function App() {
167169
Copy
168170
</Button>
169171
</div>
172+
<div style={{ display: "flex", justifyContent: "flex-end" }}>
173+
<FormControlLabel
174+
control={
175+
<Switch
176+
onChange={(e) => {
177+
navigator.clipboard.writeText(targetText);
178+
}}
179+
/>
180+
}
181+
label="ページ番号あり"
182+
labelPlacement="start"
183+
/>
184+
</div>
170185
<div style={{ display: "flex", justifyContent: "flex-end" }}>
171186
<Button
172187
onClick={() => {

0 commit comments

Comments
 (0)