Skip to content

Commit 0398622

Browse files
committed
clear filter invite table
1 parent 49efba2 commit 0398622

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/features/Invites/InviteView.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ const useStyles = makeStyles((theme: Theme) =>
9797
},
9898
},
9999
},
100+
label: {
101+
textTransform: 'capitalize'
102+
},
103+
buttonRoot: {
104+
backgroundColor: 'white',
105+
boxShadow: 'none',
106+
borderRadius: theme.shape.borderRadius - 5
107+
}
100108
})
101109
)
102110

@@ -257,6 +265,12 @@ const InviteView: FunctionComponent<Props> = (props) => {
257265
}} variant="contained" style={{ marginTop: '33px', marginLeft: '27px', height: '40px'}}>In Office</Button> */}
258266
<SelectInput style={{ marginLeft: '27px' }} onChange={(e: any) => { debugger; handleFilterChange({ purpose: e.target.value }) }} menuOptions={purpose.map(item => ({ title: item }))} defaultValue="All Purpose" value={filter.purpose} />
259267
<SelectInput style={{ marginLeft: '27px' }} onChange={(e: any) => { debugger; handleFilterChange({ site: e.target.value }) }} menuOptions={sites.map(item => ({ title: item.sitename }))} defaultValue="All Sites" value={filter.site} />
268+
<Button onClick={() => { handleFilterChange({ site: "", purpose: "", visitor: "" }) }}
269+
classes={{
270+
root: classes.buttonRoot, // class name, e.g. `classes-nesting-root-x`
271+
label: classes.label, // class name, e.g. `classes-nesting-label-x`
272+
}} variant="contained" style={{ marginLeft: '27px', height: '40px' }}
273+
>Clear Filter</Button>
260274
</Box>
261275
<TableWrapper config={TableConfig} style={{ marginTop: '17px', marginLeft: '43px', marginRight: '300px' }} />
262276
</Paper>

0 commit comments

Comments
 (0)