Skip to content

Commit

Permalink
Merge pull request #345 from bcgsc/release/v6.21.0
Browse files Browse the repository at this point in the history
Release/v6.21.0
  • Loading branch information
kttkjl authored Aug 8, 2023
2 parents b4681ce + b802597 commit 79322ab
Show file tree
Hide file tree
Showing 29 changed files with 1,164 additions and 336 deletions.
22 changes: 0 additions & 22 deletions app/components/AppendixEditor/AppendixEditor.stories.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions app/components/AppendixEditor/index.scss

This file was deleted.

4 changes: 3 additions & 1 deletion app/components/AuthenticatedRoute/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ const AuthenticatedRoute = ({
/>
);
};
} if (!adminAccess && adminRequired) {
}

if (!adminAccess && adminRequired) {
return () => (
<Redirect to="/" />
);
Expand Down
22 changes: 22 additions & 0 deletions app/components/IPRWYSIWYGEditor/IPRWYSIWYGEditor.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';
import { Story } from '@storybook/react/types-6-0';
import IPRWYSIWYGEditor, { IPRWYSIWYGEditorProps } from '.';

export default {
title: 'components/IPRWYSIWYGEditor',
component: IPRWYSIWYGEditor,
};

const Template = (args) => <IPRWYSIWYGEditor {...args} />;

export const Empty: Story<IPRWYSIWYGEditorProps> = Template.bind({});
Empty.args = {
isOpen: true,
text: null,
};

export const WithDefaultText: Story<IPRWYSIWYGEditorProps> = Template.bind({});
WithDefaultText.args = {
isOpen: true,
text: 'Default loaded text',
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
render, screen, fireEvent, cleanup,
} from '@testing-library/react';

import TextEditor from '..';
import IPRWYSIWYGEditor from '../index';

const mockText = 'test value <h1>header</h1>';

Expand All @@ -12,8 +12,8 @@ describe('TextEditor', () => {

test('Provided text is visible', async () => {
render(
<TextEditor
analystComments={mockText}
<IPRWYSIWYGEditor
text={mockText}
isOpen
onClose={() => {}}
/>,
Expand All @@ -25,8 +25,8 @@ describe('TextEditor', () => {
test('Close function is called', () => {
const handleClose = jest.fn();
render(
<TextEditor
analystComments={mockText}
<IPRWYSIWYGEditor
text={mockText}
isOpen
onClose={handleClose}
/>,
Expand Down
Loading

0 comments on commit 79322ab

Please sign in to comment.