Commit 11028584 authored by Ли Джен Сеп's avatar Ли Джен Сеп 💬

#6 переделал компоненты material ui

parent 2078e52e
......@@ -48,7 +48,6 @@ export default function InputField({ name, value, onChange }: Props) {
variant="outlined"
id={`${name}-input`}
name={name}
label={name}
value={value}
type="password"
onChange={onChange}
......
......@@ -22,6 +22,7 @@ export const encodeMessage = createAsyncThunk('request/encode', async (newMessag
try {
const { data } = await axiosClient.post('/encode', newMessage);
console.log(data);
console.log(newMessage);
return data.encoded;
} catch (error: any) {
......@@ -33,6 +34,7 @@ export const decodeMessage = createAsyncThunk('request/decode', async (newMessag
try {
const { data } = await axiosClient.post('/decode', newMessage);
console.log(data);
console.log(newMessage);
return data.decoded;
} catch (error: any) {
throw new Error(error.response?.data?.message || 'Error encoding message');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment