Skip to content

Commit

Permalink
feat: update placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 23, 2024
1 parent aabb95b commit e4967b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function App() {
<Input
ref={inputRef}
type="text"
placeholder="input..."
placeholder="Write something... Ctrl+Enter to save"
className="focus-visible:ring-0 border-none input-bg"
onKeyDown={handleInputBoxSave}
onChange={(e) => setInputValue(e.target.value)}
Expand All @@ -64,7 +64,7 @@ function App() {
<Button
onClick={submitInput}
className="bg-green-500 inset-x-0 hover:bg-green-600">
Save
Save To TiddlyWiki
</Button>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as vscode from 'vscode';

export const config = () => vscode.workspace.getConfiguration('usewiki2');
// todo
export const placeholder = () => config().get('placeholder', '请输入你的内容');

export const enableHttps = () => config().get('enableHttps', false);
export const defaultTag = () => config().get('defaultTag', 'Journal');
Expand Down

0 comments on commit e4967b9

Please sign in to comment.