Skip to content

Commit

Permalink
Release Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jboolean committed Jan 28, 2024
1 parent f906097 commit ab29a2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import React from 'react';
import { useParams } from 'react-router-dom';
import { API_BASE } from 'utils/apiConstants';

import { useFeatureFlag } from 'screens/App/shared/stores/FeatureFlagsStore';
import FeatureFlag from 'screens/App/shared/types/FeatureFlag';
import Button, { ButtonStyledLink } from 'shared/components/Button';
import recordEvent from 'shared/utils/recordEvent';
import { useCorrectionsStore } from '../../Corrections';
Expand All @@ -20,7 +18,6 @@ export default function ImageButtons(): JSX.Element {
const initializeCorrections = useCorrectionsStore(
(state) => state.initialize
);
const isFixVisible = useFeatureFlag(FeatureFlag.CORRECTIONS);

return (
<div>
Expand Down Expand Up @@ -50,17 +47,15 @@ export default function ImageButtons(): JSX.Element {
>
Know This Place?
</Button>
{isFixVisible ? (
<Button
buttonTheme="viewer"
buttonStyle="secondary"
onClick={() => {
initializeCorrections(photoIdentifier);
}}
>
Fix
</Button>
) : null}
<Button
buttonTheme="viewer"
buttonStyle="secondary"
onClick={() => {
initializeCorrections(photoIdentifier);
}}
>
Fix
</Button>
</div>
);
}
1 change: 0 additions & 1 deletion frontend/src/screens/App/shared/types/FeatureFlag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ enum FeatureFlag {
AUDIO_STORYTELLING = 'audio-storytelling',
DISABLE_WELCOME_MODAL = 'disable-welcome-modal',
ALWAYS_SHOW_OVERLAY = 'always-show-overlay',
CORRECTIONS = 'corrections',
}

export default FeatureFlag;

0 comments on commit ab29a2c

Please sign in to comment.