Skip to content

Commit

Permalink
improvement: update text
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglun committed May 24, 2024
1 parent 1373876 commit 6f4e4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
20 changes: 1 addition & 19 deletions src/layout/Setting/General/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,7 @@ export const General = () => {

return (
<Panel title="General">
<PanelSection title="Proxy" subTitle="use a proxy server for connection">
<div className="grid gap-1 grid-cols-[120px_10px_60px] items-center">
<TextField.Root
type="text"
value={localProxy.server}
className="tracking-wide"
onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleLocalProxyChange("server", e.target.value)}
/>
<span className="text-center">:</span>
<TextField.Root
type="text"
className="tracking-wide"
value={localProxy.port}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleLocalProxyChange("port", e.target.value)}
/>
</div>
</PanelSection>
<Separator className="mt-6" size="4" />
<PanelSection title="Update Interval (Wserver)" subTitle="set the update interval">
<PanelSection title="Update Interval (🚧WIP)" subTitle="set the update interval">
<Select.Root
value={store.userConfig.update_interval?.toString()}
onValueChange={(v: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/layout/Setting/Proxy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const ProxySetting = () => {

return (
<Panel title="Proxy Settings">
<PanelSection title="Proxy" subTitle="">
<PanelSection title="Proxy" subTitle="use proxy server for connection">
<Button variant="ghost" onClick={() => setProxyModalStatus(true)}>
<PlusCircle size="16" strokeWidth={1.5} />
Add Proxy
Expand Down

0 comments on commit 6f4e4e9

Please sign in to comment.