Skip to content

Commit

Permalink
bfix: time button css
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 committed Feb 14, 2024
1 parent 4c6eaef commit 9e006cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/app/components/timeRangeSwitch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ const TimeRangeSwitch: React.FC<Props> = ({ weekly, setWeekly }) => {
// const dispatch = useDispatch();
// const isWeekly = useSelector((state: timeRangeModel) => state.isWeekly.value);
useEffect(()=>{
console.log(weekly,"makki")
},[weekly, setWeekly])
return (
<div className='timerange-cont'>
<button
onClick={() => setWeekly(true)}
className={weekly ? 'active' :''}
// className={'active'}
style={weekly?{}:{background:'transparent'}}

>
Weekly{' '}
</button>
<button
onClick={() => setWeekly(false)}
className={weekly ? '' : 'active'}
className={weekly ? '' :'active'}
style={weekly?{background:'transparent'}:{}}
>
Monthly{' '}
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/features/workspace-view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const WorkspaceView = () => {
<div className='workspaceview-header'>
<SearchBar />

<button onClick={() => setArcheives(!archeives)}>Archeives</button>
<button onClick={() => setArcheives(!archeives)} style={archeives?{background: '#141432'}:{}}>Archeives</button>
<button onClick={() => navigate('/addWorkspace')}>
Create a workspace
</button>
Expand Down
1 change: 0 additions & 1 deletion src/features/workspace-view/workspace-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ const WorkspaceCard = (props: workspaceCardProps) => {
}
};
useEffect(() => {
console.log(archeive)
workSpaceData();
}, [ userContext?.setUserOrgs ]);

Expand Down

0 comments on commit 9e006cd

Please sign in to comment.