-
-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { block } from 'million/react'; | ||
|
||
const AUTO_ARCHIVE_OPTIONS = [ | ||
3 * 86400, // 3 days | ||
7 * 86400, // 7 days | ||
14 * 86400, // 2 weeks | ||
28 * 86400, // 4 weeks | ||
90 * 86400, // 3 months | ||
365 * 86400, // 1 year | ||
]; | ||
|
||
const ArchiveAllPrefGroup = block(() => { | ||
const onChange = () => {}; | ||
return ( | ||
<div className="prefs-group"> | ||
<div className="label-wrapper"> | ||
<label> | ||
<div> | ||
<div> | ||
Auto archive | ||
<select onChange={onChange}> | ||
<option value="all">all</option> | ||
<option value="unread">unread</option> | ||
</select> | ||
threads older than | ||
</div> | ||
<select onChange={onChange}> | ||
{AUTO_ARCHIVE_OPTIONS.map((seconds) => ( | ||
<option key={seconds} value={String(seconds)}> | ||
{String(seconds * 1000)} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
</label> | ||
</div> | ||
</div> | ||
); | ||
}); | ||
|
||
export default ArchiveAllPrefGroup; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
02d2dea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
million-kitchen-sink – ./packages/kitchen-sink
million-kitchen-sink.vercel.app
million-kitchen-sink-git-main-millionjs.vercel.app
million-kitchen-sink-millionjs.vercel.app
02d2dea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sink – ./packages/kitchen-sink
million-kitchen-sink-atit.vercel.app
sink-git-main-millionjs.vercel.app
sink.million.dev
sink-millionjs.vercel.app