1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-07 11:55:17 +02:00

Added option to change date formatting. Added shortcuts to clear search bar

This commit is contained in:
Paweł Malak 2021-10-22 15:51:11 +02:00
parent cfb471e578
commit 4ef9652ede
11 changed files with 68 additions and 13 deletions

View file

@ -20,6 +20,9 @@ export const getConfig = () => async (dispatch: Dispatch) => {
// Set custom page title if set
document.title = res.data.data.customTitle;
// Store settings for priority UI elements
localStorage.setItem('useAmericanDate', `${res.data.data.useAmericanDate}`);
} catch (err) {
console.log(err);
}
@ -46,6 +49,9 @@ export const updateConfig = (formData: any) => async (dispatch: Dispatch) => {
type: ActionTypes.updateConfig,
payload: res.data.data,
});
// Store settings for priority UI elements
localStorage.setItem('useAmericanDate', `${res.data.data.useAmericanDate}`);
} catch (err) {
console.log(err);
}