aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/Chores
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-09 17:39:16 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-09 17:39:16 -0400
commita24134f8525373f5707b6c48aa77d3f4aff70799 (patch)
treea2a34c9ea849388dc39036aed3a99b79d9f055a4 /src/views/Chores
parentc4bf06b11cb5e8ebb1e7ed2ecc7bfeded0cfc42f (diff)
downloaddonetick-frontend-a24134f8525373f5707b6c48aa77d3f4aff70799.tar.gz
donetick-frontend-a24134f8525373f5707b6c48aa77d3f4aff70799.tar.bz2
donetick-frontend-a24134f8525373f5707b6c48aa77d3f4aff70799.zip
Add useWindowWidth hook and HistoryCard component
Diffstat (limited to '')
-rw-r--r--src/views/Chores/ChoreCard.jsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/views/Chores/ChoreCard.jsx b/src/views/Chores/ChoreCard.jsx
index 5e54e6b..08a5406 100644
--- a/src/views/Chores/ChoreCard.jsx
+++ b/src/views/Chores/ChoreCard.jsx
@@ -45,7 +45,14 @@ import DateModal from '../Modals/Inputs/DateModal'
import SelectModal from '../Modals/Inputs/SelectModal'
import TextModal from '../Modals/Inputs/TextModal'
import WriteNFCModal from '../Modals/Inputs/WriteNFCModal'
-const ChoreCard = ({ chore, performers, onChoreUpdate, onChoreRemove, sx }) => {
+const ChoreCard = ({
+ chore,
+ performers,
+ onChoreUpdate,
+ onChoreRemove,
+ sx,
+ viewOnly,
+}) => {
const [activeUserId, setActiveUserId] = React.useState(0)
const [isChangeDueDateModalOpen, setIsChangeDueDateModalOpen] =
React.useState(false)
@@ -367,6 +374,7 @@ const ChoreCard = ({ chore, performers, onChoreUpdate, onChoreRemove, sx }) => {
</Chip>
<Card
+ style={viewOnly ? { pointerEvents: 'none' } : {}}
variant='plain'
sx={{
...sx,