Skip to content

Commit

Permalink
Remove duplicate IDs from test-snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Jan 14, 2025
1 parent 030ebee commit 177b244
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,28 +59,22 @@ export const SetState: FunctionComponent<{ encrypted: boolean }> = ({
placeholder="Value"
value={value}
onChange={handleChangeValue}
id={encrypted ? 'dataManageState' : 'dataUnencryptedManageState'}
id={encrypted ? 'dataState' : 'dataUnencryptedState'}
className="mb-3"
/>
</Form.Group>

<Button
type="submit"
id={encrypted ? 'sendManageState' : 'sendUnencryptedManageState'}
id={encrypted ? 'sendState' : 'sendUnencryptedState'}
disabled={isLoading}
>
Set State
</Button>
</Form>

<Result className="mb-3">
<span
id={
encrypted
? 'sendManageStateResult'
: 'sendUnencryptedManageStateResult'
}
>
<span id={encrypted ? 'sendStateResult' : 'sendUnencryptedStateResult'}>
{JSON.stringify(data, null, 2)}
{JSON.stringify(error, null, 2)}
</span>
Expand Down

0 comments on commit 177b244

Please sign in to comment.