Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvelici committed Nov 7, 2024
1 parent 0f23f59 commit c8e9624
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions demo/src/components/MessageComponent/MessageComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import { Message } from '@ably/chat';
import React, { useCallback, useState } from 'react';
import React, { useCallback } from 'react';
import clsx from 'clsx';
import { FaPencil, FaTrash } from 'react-icons/fa6';

function twoDigits(input: number): string {
if (input === 0) {
return '00';
}
if (input < 10) {
return '0' + input;
}
return '' + input;
}

interface MessageProps {
self?: boolean;
message: Message;
Expand Down

0 comments on commit c8e9624

Please sign in to comment.