Skip to content

Commit

Permalink
Fix: Consultation styling on dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiganchev-7DIGIT committed Apr 11, 2024
1 parent baa7a69 commit 0324f94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/consultation/Controls/Controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ConsultationInformation } from "../../cards/";
import { ONE_HOUR } from "#utils";
import { appStyles } from "#styles";
import { AppText } from "../../texts";
import { useGetTheme } from "#hooks";

/**
* Controls
Expand All @@ -32,6 +33,8 @@ export const Controls = ({
isProviderInSession,
t,
}) => {
const { isDarkMode } = useGetTheme();

const [isMicOpen, setIsMicOpen] = useState(isMicrophoneOn);
const [isCameraOpen, setIsCameraOpen] = useState(isCameraOn);

Expand Down Expand Up @@ -119,6 +122,9 @@ export const Controls = ({
style,
{
paddingTop: isConsultationInformationShown ? 16 : 40,
backgroundColor: isDarkMode
? "rgba(36, 33, 39, 0.75)"
: "rgba(255, 255, 255, 0.75)",
},
]}
>
Expand All @@ -134,7 +140,6 @@ export const Controls = ({
isConsultationInformationShown ? "up" : "down"
}`}
size="md"
color="#000000"
/>
</TouchableOpacity>
{isConsultationInformationShown ? (
Expand Down Expand Up @@ -169,7 +174,6 @@ export const Controls = ({
const styles = StyleSheet.create({
container: {
alignSelf: "center",
backgroundColor: "rgba(255, 255, 255, 0.75)",
borderRadius: 20,
maxWidth: 420,
paddingBottom: 16,
Expand Down
1 change: 0 additions & 1 deletion src/screens/Consultation/Consultation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ const styles = StyleSheet.create({
right: 20,
},
optionsContainer: {
backgroundColor: "white",
width: "100%",
paddingBottom: 20,
},
Expand Down

0 comments on commit 0324f94

Please sign in to comment.