summaryrefslogtreecommitdiff
path: root/components/Tweaks/FilterPanel.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-11 01:46:29 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-11 01:46:29 +0200
commitca8adb497460e39654069ef583d851dd05078cb4 (patch)
treeef194bebfe1154823450daa708396782109dfe82 /components/Tweaks/FilterPanel.tsx
parentbb6fe7325dfe76c0618d34455e56122c3204a3b3 (diff)
parentf495a9499c549d92d64ee3a2e50a239ea769c609 (diff)
chore(preview): merge branches
Diffstat (limited to 'components/Tweaks/FilterPanel.tsx')
-rw-r--r--components/Tweaks/FilterPanel.tsx23
1 files changed, 20 insertions, 3 deletions
diff --git a/components/Tweaks/FilterPanel.tsx b/components/Tweaks/FilterPanel.tsx
index df1dd81..39233f9 100644
--- a/components/Tweaks/FilterPanel.tsx
+++ b/components/Tweaks/FilterPanel.tsx
@@ -46,9 +46,15 @@ const FilterPanel = (props: FilterPanelProps) => {
color="gray.800"
>
<Flex alignItems="center" justifyContent="space-between">
- <Text>Link children to...</Text>
+ <Text>Link children to</Text>
<Menu isLazy placement="right">
- <MenuButton as={Button} rightIcon={<ChevronDownIcon />} colorScheme="" color="black">
+ <MenuButton
+ as={Button}
+ rightIcon={<ChevronDownIcon />}
+ colorScheme=""
+ color="black"
+ size="sm"
+ >
{(() => {
switch (filter.parent) {
case 'parent':
@@ -106,6 +112,17 @@ const FilterPanel = (props: FilterPanelProps) => {
></Switch>
</Flex>
<Flex justifyContent="space-between">
+ <Text>Dailies</Text>
+ <Switch
+ onChange={() => {
+ setFilter((curr: typeof initialFilter) => {
+ return { ...curr, dailies: !curr.dailies }
+ })
+ }}
+ isChecked={filter.dailies}
+ ></Switch>
+ </Flex>
+ <Flex justifyContent="space-between">
<Text>Citations without note files</Text>
<Switch
onChange={() => {
@@ -150,7 +167,7 @@ const FilterPanel = (props: FilterPanelProps) => {
</AccordionItem>
<AccordionItem>
<AccordionButton>
- Tag Colors
+ Tag colors
<AccordionIcon />
</AccordionButton>
<AccordionPanel pr={0} mr={0}>