icssc / AntAlmanac

A course exploration and scheduling tool for UCI Anteaters
https://antalmanac.com
MIT License
54 stars 64 forks source link

Auto-Save Feature (Solving Conflict) #891

Closed stevenguyukai closed 5 months ago

stevenguyukai commented 6 months ago

Summary

This Pull request is the same as #865 but solving the conflict with main

Closes #865

stevenguyukai commented 6 months ago

For only spinning the icon when saving and loading, it was not supported by the library.

So I made a custom SaveLoadIcon, which will spin when loading is True. I set the default LoadingButton component's loading to False so the text will not spin.

Just to document the change

stevenguyukai commented 6 months ago

There is a new file for the action type: ActionTypes.ts.

stevenguyukai commented 5 months ago

just a quick add of the guard condition, you can just merge it if there is no problem