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

Merge branch 'updateFront' into 'master'

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

See merge request !16
parents 6fdc5364 11028584
...@@ -48,7 +48,6 @@ export default function InputField({ name, value, onChange }: Props) { ...@@ -48,7 +48,6 @@ export default function InputField({ name, value, onChange }: Props) {
variant="outlined" variant="outlined"
id={`${name}-input`} id={`${name}-input`}
name={name} name={name}
label={name}
value={value} value={value}
type="password" type="password"
onChange={onChange} onChange={onChange}
......
...@@ -22,6 +22,7 @@ export const encodeMessage = createAsyncThunk('request/encode', async (newMessag ...@@ -22,6 +22,7 @@ export const encodeMessage = createAsyncThunk('request/encode', async (newMessag
try { try {
const { data } = await axiosClient.post('/encode', newMessage); const { data } = await axiosClient.post('/encode', newMessage);
console.log(data); console.log(data);
console.log(newMessage);
return data.encoded; return data.encoded;
} catch (error: any) { } catch (error: any) {
...@@ -33,6 +34,7 @@ export const decodeMessage = createAsyncThunk('request/decode', async (newMessag ...@@ -33,6 +34,7 @@ export const decodeMessage = createAsyncThunk('request/decode', async (newMessag
try { try {
const { data } = await axiosClient.post('/decode', newMessage); const { data } = await axiosClient.post('/decode', newMessage);
console.log(data); console.log(data);
console.log(newMessage);
return data.decoded; return data.decoded;
} catch (error: any) { } catch (error: any) {
throw new Error(error.response?.data?.message || 'Error encoding message'); 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