Skip to content

Commit

Permalink
fixed priority things
Browse files Browse the repository at this point in the history
  • Loading branch information
doljko committed Jun 25, 2024
1 parent 4c7a00f commit 13e73b9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
36 changes: 18 additions & 18 deletions src/constant/Enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ const IssueCategory = {
};

const IssuePriority = {
LOW: 'Low',
MEDIUM: 'Medium',
HIGH: 'High',
CRITICAL: 'Critical',
SCHEDULED_MAINTENANCE: 'Scheduled Maintenance',
OPERATIONAL_SUGGESTION: 'Operational Suggestion',
low: 'Low',
medium: 'Medium',
high: 'High',
critical: 'Critical',
'scheduled-maintenance': 'Scheduled Maintenance',
'operational-suggestion': 'Operational Suggestion',
};

const Status = {
Pending: 'Pending',
InProgress: 'In Progress',
Backlogged: 'Backlogged',
RequiresUpdate: 'Requires Update',
InReview: 'In Review',
ReOpened: 'Re Opened',
Duplicate: 'Duplicate',
PendingReview: 'Pending Review',
Escalated: 'Escalated',
Completed: 'Completed',
Canceled: 'Canceled',
Pending: 'Pending',
pending: 'Pending',
'in-progress': 'In Progress',
backlogged: 'Backlogged',
'requires-update': 'Requires Update',
'in-review': 'In Review',
're-opened': 'Re Opened',
duplicate: 'Duplicate',
'pending-review': 'Pending Review',
escalated: 'Escalated',
completed: 'Completed',
canceled: 'Canceled',
};

export { IssuePriority, IssueType, IssueCategory, Status };
6 changes: 4 additions & 2 deletions src/features/Core/screens/ChatScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ const ChatScreen = ({ route }) => {
);
};

const checkIsImage = documentType => {
return documentType.content_type.startsWith('image/');
const checkIsImage = url => {
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp'];
const urlExtension = url.split('.').pop().split('?')[0].toLowerCase();
return imageExtensions.includes(urlExtension);
};

const renderBubble = props => {
Expand Down

0 comments on commit 13e73b9

Please sign in to comment.