Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian-mkd committed Nov 7, 2024
1 parent b3d763f commit 546534e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ const useStyles = (landscape = false) => {
flexShrink: 1,
},
}),
[theme]
[theme, landscape]
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const MoreActionsButton = ({
const [isDrawerVisible, setIsDrawerVisible] = useState(false);
const [feedbackModalVisible, setFeedbackModalVisible] = useState(false);
const setState = useAppGlobalStoreSetState();
const theme = useAppGlobalStoreValue((store) => store.themeMode);
const themeMode = useAppGlobalStoreValue((store) => store.themeMode);
const call = useCall();

const handleRating = async (rating: number) => {
Expand Down Expand Up @@ -79,7 +79,7 @@ export const MoreActionsButton = ({
},
{
id: '2',
label: getName(theme),
label: getName(themeMode),
icon: (
<IconWrapper>
<LightDark
Expand All @@ -89,7 +89,7 @@ export const MoreActionsButton = ({
</IconWrapper>
),
onPress: () => {
if (theme === 'light') {
if (themeMode === 'light') {
setState({ themeMode: 'dark' });
} else {
setState({ themeMode: 'light' });
Expand Down

0 comments on commit 546534e

Please sign in to comment.