Skip to content

Commit cd2f33f

Browse files
committed
remove margin from certificate button and simplify tour completion state logic
1 parent 3c193ad commit cd2f33f

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

app/components/CertificateButton/CertificateButton.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.certificateButton {
22
font-size: small;
3-
margin-right: 32px;
43
display: flex;
54
align-items: center;
65
justify-content: center;

app/components/CodeEditor/CodeEditor.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ const EditorControls = ({
113113
outputResult: OutputResult;
114114
}) => {
115115
const router = useRouter();
116-
const [isTheTourCompletedState, setIsTheTourCompletedState] = useState(false);
117-
118-
useEffect(() => {
119-
setIsTheTourCompletedState(isTheTourCompleted());
120-
}, []);
121-
122116
return (
123117
<div className={styles.buttonsWrapper}>
124118
<Flex dir="row" gap="8px" alignItems="end">
@@ -137,7 +131,7 @@ const EditorControls = ({
137131
Reset
138132
</MyBtn>
139133
</Flex>
140-
{!nextStepPath && isTheTourCompletedState ? (
134+
{!nextStepPath ? (
141135
<CertificateButton />
142136
) : (
143137
<MyBtn

app/components/OutlineDrawer/OutlineDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function OutlineDrawer({
4242
<DrawerOverlay />
4343
<DrawerContent>
4444
<DrawerCloseButton />
45-
<DrawerHeader display={"flex"} justifyContent={"space-between"}>
45+
<DrawerHeader display={"flex"} justifyContent={"space-between"} paddingRight={12}>
4646
Outline
4747
<CertificateButton />
4848
</DrawerHeader>

0 commit comments

Comments
 (0)