Skip to content

Commit

Permalink
fix: a little more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Jun 23, 2023
1 parent 1783a20 commit 440eb7e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2023-06-22T09:43:30.710Z\n"
"PO-Revision-Date: 2023-06-22T09:43:30.710Z\n"
"POT-Creation-Date: 2023-06-23T09:35:54.767Z\n"
"PO-Revision-Date: 2023-06-23T09:35:54.767Z\n"

msgid "view only"
msgstr "view only"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,19 @@ const interpretationsQuery = {
}

export const InterpretationsUnit = forwardRef(
({ currentUser, type, id, disabled, renderId, ...rest }, ref) => {
(
{
currentUser,
type,
id,
onInterpretationClick,
onReplyIconClick,
disabled,
renderId,
appUrl,
},
ref
) => {
const [isExpanded, setIsExpanded] = useState(true)

const { data, loading, fetching, refetch } = useDataQuery(
Expand Down Expand Up @@ -110,9 +122,13 @@ export const InterpretationsUnit = forwardRef(
interpretations={
data.interpretations.interpretations
}
onInterpretationClick={
onInterpretationClick
}
onReplyIconClick={onReplyIconClick}
refresh={onCompleteAction}
disabled={disabled}
{...rest}
appUrl={appUrl}
/>
</>
)}
Expand Down Expand Up @@ -165,10 +181,17 @@ export const InterpretationsUnit = forwardRef(

InterpretationsUnit.displayName = 'InterpretationsUnit'

InterpretationsUnit.defaultProps = {
onInterpretationClick: Function.prototype,
}

InterpretationsUnit.propTypes = {
currentUser: PropTypes.object.isRequired,
id: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
appUrl: PropTypes.string,
disabled: PropTypes.bool,
renderId: PropTypes.number,
onInterpretationClick: PropTypes.func,
onReplyIconClick: PropTypes.func,
}

0 comments on commit 440eb7e

Please sign in to comment.